summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2013-12-05 20:54:38 +0000
committerKris <Kris.De.Gussem@hotmail.com>2013-12-05 20:54:38 +0000
commitb242e59f18790e668dc619f867a7b76818e25ae4 (patch)
tree79fcb6b0c123ec1594554b4659d6a77a32e56016 /src
parentNew CSS blending and compositing modes. (diff)
downloadinkscape-b242e59f18790e668dc619f867a7b76818e25ae4.tar.gz
inkscape-b242e59f18790e668dc619f867a7b76818e25ae4.zip
add null pointer check
(bzr r12838)
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/swatches.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/dialog/swatches.cpp b/src/ui/dialog/swatches.cpp
index d4d80c9b1..1e5baffd2 100644
--- a/src/ui/dialog/swatches.cpp
+++ b/src/ui/dialog/swatches.cpp
@@ -247,7 +247,7 @@ gboolean colorItemHandleButtonPress( GtkWidget* widget, GdkEventButton* event, g
{
gboolean handled = FALSE;
- if ( (event->button == 3) && (event->type == GDK_BUTTON_PRESS) ) {
+ if ( event && (event->button == 3) && (event->type == GDK_BUTTON_PRESS) ) {
SwatchesPanel* swp = findContainingPanel( widget );
if ( !popupMenu ) {