dia r4135 - in trunk: . objects/UML



Author: hans
Date: Sun Nov  2 12:30:45 2008
New Revision: 4135
URL: http://svn.gnome.org/viewvc/dia?rev=4135&view=rev

Log:
2008-11-02  Hans Breuer  <hans breuer org>

	* plug-ins/UML/class_dialog.c : don't crash if the selection callbacks
	get called after dialog destruction. Fixes bug #558650
	


Modified:
   trunk/ChangeLog
   trunk/objects/UML/class_dialog.c

Modified: trunk/objects/UML/class_dialog.c
==============================================================================
--- trunk/objects/UML/class_dialog.c	(original)
+++ trunk/objects/UML/class_dialog.c	Sun Nov  2 12:30:45 2008
@@ -1341,6 +1341,9 @@
 
   prop_dialog = umlclass->properties_dialog;
 
+  if (!prop_dialog)
+    return; /* maybe hiding a bug elsewhere */
+
   parameters_get_current_values(prop_dialog);
   
   list = GTK_LIST(gtklist)->selection;
@@ -2516,6 +2519,9 @@
 
   prop_dialog = umlclass->properties_dialog;
 
+  if (!prop_dialog)
+    return; /* maybe hiding a bug elsewhere */
+
   templates_get_current_values(prop_dialog);
   
   list = GTK_LIST(gtklist)->selection;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]