redraw and continue fix
[lttv.git] / ltt / branches / poly / lttv / modules / gui / lttvwindow / lttvwindow / callbacks.c
index c734f89dc33a2b070cd20c5c5d0c28c2633d0136..1e678444220e43f70e57d51104d68a15041a4868 100644 (file)
@@ -1287,9 +1287,8 @@ void redraw(GtkWidget *widget, gpointer user_data)
   g_assert(lttv_iattribute_find_by_path(tab->attributes, "hooks/redraw", LTTV_POINTER, &value));
 
   tmp = (LttvHooks*)*(value.v_pointer);
-  g_assert(tmp != NULL);
-  
-  lttv_hooks_call(tmp,NULL);
+  if(tmp != NULL)
+    lttv_hooks_call(tmp,NULL);
 }
 
 
@@ -1312,9 +1311,8 @@ void continue_processing(GtkWidget *widget, gpointer user_data)
      "hooks/continue", LTTV_POINTER, &value));
 
   tmp = (LttvHooks*)*(value.v_pointer);
-  g_assert(tmp != NULL);
-  
-  lttv_hooks_call(tmp,NULL);
+  if(tmp != NULL)
+    lttv_hooks_call(tmp,NULL);
 }
 
 /* Stop the processing for the calling main window's current tab.
This page took 0.023559 seconds and 4 git commands to generate.