summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 ) {