[dia] UML - Transition: fix undo info return for move_handle



commit 4350d0cdff9d7b8d334c5ba548c33a8e80df32d2
Author: Hans Breuer <hans breuer org>
Date:   Sun Jun 30 12:13:13 2013 +0200

    UML - Transition: fix undo info return for move_handle
    
    Moving handles might turn off auto-routing, which will only be
    re-enabled by undo if the change information is returned.
    This should also fix a leaking the change information.

 objects/UML/transition.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/objects/UML/transition.c b/objects/UML/transition.c
index 04636f0..0d5ab9a 100644
--- a/objects/UML/transition.c
+++ b/objects/UML/transition.c
@@ -474,7 +474,7 @@ transition_move_handle(Transition*      transition,
        p1.y = 0.5 * (transition->orth.points[n-1].y + transition->orth.points[n].y);
        
         /* Tell the connection that one of its handles is being moved */
-        orthconn_move_handle(&transition->orth, handle, newpos, cp, reason, modifiers);
+        change = orthconn_move_handle(&transition->orth, handle, newpos, cp, reason, modifiers);
        /* with auto-routing the number of points may have changed */
        n = transition->orth.numpoints/2;
        p2.x = 0.5 * (transition->orth.points[n-1].x + transition->orth.points[n].x);


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