summaryrefslogtreecommitdiff
path: root/editors/abiword/patches/patch-plugins_gimp_xp_AbiGimp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editors/abiword/patches/patch-plugins_gimp_xp_AbiGimp.cpp')
-rw-r--r--editors/abiword/patches/patch-plugins_gimp_xp_AbiGimp.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/editors/abiword/patches/patch-plugins_gimp_xp_AbiGimp.cpp b/editors/abiword/patches/patch-plugins_gimp_xp_AbiGimp.cpp
new file mode 100644
index 00000000000..a6fa799c1f5
--- /dev/null
+++ b/editors/abiword/patches/patch-plugins_gimp_xp_AbiGimp.cpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-plugins_gimp_xp_AbiGimp.cpp,v 1.1 2015/09/13 21:32:13 nros Exp $
+* Fix seg fault.
+--- plugins/gimp/xp/AbiGimp.cpp.orig 2013-12-23 02:37:58.000000000 +0000
++++ plugins/gimp/xp/AbiGimp.cpp
+@@ -249,6 +249,10 @@ AbiGimp_invoke(AV_View* /*v*/, EV_EditMe
+ {
+ // Get the current view that the user is in.
+ XAP_Frame *pFrame = XAP_App::getApp()->getLastFocussedFrame();
++ if (pFrame == NULL) {
++ UT_DEBUGMSG(("Gimp plugin: getLastFocussedFrame() returned NULL\n"));
++ return false;
++ }
+ FV_View* pView = static_cast<FV_View*>(pFrame->getCurrentView());
+
+ //