summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2007-12-04 22:40:56 +0100
committerGuillaume Seguin <guillaume@segu.in>2007-12-04 22:40:56 +0100
commit701f89eef42902814f6bc4bf13b872e0af429c9d (patch)
tree0685f9849bff6463e1b407e5408028bd2587ad4a
parent9a23992f3c44ffcdb1926db6785593047e16f293 (diff)
downloadgmathlib-701f89eef42902814f6bc4bf13b872e0af429c9d.tar.gz
gmathlib-701f89eef42902814f6bc4bf13b872e0af429c9d.tar.bz2
* Fix segfault when selecting an empty widget
-rw-r--r--gmathview/gmathview.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gmathview/gmathview.c b/gmathview/gmathview.c
index d067408..60ad216 100644
--- a/gmathview/gmathview.c
+++ b/gmathview/gmathview.c
@@ -130,7 +130,8 @@ g_math_view_on_button_press (GtkWidget *widget, GdkEventButton *event)
if (!container)
return FALSE;
- g_message ("*CLICK* on symbol of type %s", container->symbol->type);
+ if (container->symbol)
+ g_message ("*CLICK* on symbol of type %s", container->symbol->type);
return FALSE;
}