[dia] Align Connected: only move connected objects also selected



commit ba4f88c15f787669c6cb2b347b6eb5706706af94
Author: Hans Breuer <hans breuer org>
Date:   Fri Aug 20 18:04:43 2010 +0200

    Align Connected: only move connected objects also selected

 app/object_ops.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/object_ops.c b/app/object_ops.c
index 47fb76f..670fecd 100644
--- a/app/object_ops.c
+++ b/app/object_ops.c
@@ -530,7 +530,8 @@ object_list_align_connected (GList *objects, Diagram *dia, int align)
 
       obj = cps->object;
       o2 = cpe->object;
-      if (g_list_find(to_be_moved, o2) && !g_list_find (movelist, o2)) {
+      if (   !g_list_find (movelist, o2)
+	  && g_list_find(to_be_moved, o2) && g_list_find(to_be_moved, obj)) {
         Point delta = {0, 0};
         /* if we haven't moved it yet, check if we want to */
         if (   (cps->directions == DIR_NORTH && cpe->directions == DIR_SOUTH)



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