[dia] Bug 611374 : don't crash on delete while moving (now really)



commit 1b9fb7b3e24af80e933d795686cc5d931ca086b7
Author: Hans Breuer <hans breuer org>
Date:   Sun Dec 11 16:24:23 2011 +0100

    Bug 611374 : don't crash on delete while moving (now really)

 app/commands.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/app/commands.c b/app/commands.c
index 55798e3..45b6e17 100644
--- a/app/commands.c
+++ b/app/commands.c
@@ -767,8 +767,10 @@ edit_delete_callback (GtkAction *action)
   DDisplay *ddisp;
 
   /* Avoid crashing while moving or resizing and deleting ... */
-  if (gdk_pointer_is_grabbed ())
+  if (gdk_pointer_is_grabbed ()) {
     gdk_beep ();    /* ... no matter how much sense it makes. */
+    return;
+  }
 
   ddisp = ddisplay_active();
   if (!ddisp) return;



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