diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2013-12-05 20:54:38 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2013-12-05 20:54:38 +0000 |
| commit | b242e59f18790e668dc619f867a7b76818e25ae4 (patch) | |
| tree | 79fcb6b0c123ec1594554b4659d6a77a32e56016 /src | |
| parent | New CSS blending and compositing modes. (diff) | |
| download | inkscape-b242e59f18790e668dc619f867a7b76818e25ae4.tar.gz inkscape-b242e59f18790e668dc619f867a7b76818e25ae4.zip | |
add null pointer check
(bzr r12838)
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/dialog/swatches.cpp | 2 |
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 ) { |
