[dia] Bug 731154 - unconnect when nudging object with cursor keys



commit 6872ad8a86fb0f8d068faa78e02816cfc65e4951
Author: Hans Breuer <hans breuer org>
Date:   Sun Jun 15 15:37:06 2014 +0200

    Bug 731154 - unconnect when nudging object with cursor keys
    
    otherwise the movement will only be temporary for connected objects.
    https://bugzilla.gnome.org/show_bug.cgi?id=731154

 app/object_ops.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/app/object_ops.c b/app/object_ops.c
index 254ecca..8c0d3c8 100644
--- a/app/object_ops.c
+++ b/app/object_ops.c
@@ -710,5 +710,7 @@ object_list_nudge(GList *objects, Diagram *dia, Direction dir, real step)
     ++i;
     list = g_list_next(list);
   }
-  undo_move_objects(dia, orig_pos, dest_pos, g_list_copy(objects)); 
+  /* if anything is connected not anymore */
+  diagram_unconnect_selected(dia);
+  undo_move_objects(dia, orig_pos, dest_pos, g_list_copy(objects));
 }


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