dia r4032 - in trunk: . app



Author: sdteffen
Date: Sun May 18 09:13:23 2008
New Revision: 4032
URL: http://svn.gnome.org/viewvc/dia?rev=4032&view=rev

Log:
        * app/disp_callbacks.c: Return NULL from ddisplay_drop_object()
        * if
        no object could be created instead of segfaulting; fixes bug
#533679



Modified:
   trunk/ChangeLog
   trunk/app/disp_callbacks.c

Modified: trunk/app/disp_callbacks.c
==============================================================================
--- trunk/app/disp_callbacks.c	(original)
+++ trunk/app/disp_callbacks.c	Sun May 18 09:13:23 2008
@@ -879,6 +879,8 @@
                                    user_data,
                                    &handle1, &handle2);
 
+  if (!obj)
+    return NULL;
 
   click_distance = ddisplay_untransform_length(ddisp, 3.0);
 



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