[glabels/glabels-3_4] Show changes immediately after rotate/flip



commit 99b749f214affdb3d7fe590f675ea23ba9d7fb23
Author: Marek Černocký <marek manet cz>
Date:   Thu Feb 25 14:02:47 2016 +0100

    Show changes immediately after rotate/flip

 src/label.c |   30 ++++++++++++++++++++----------
 1 files changed, 20 insertions(+), 10 deletions(-)
---
diff --git a/src/label.c b/src/label.c
index 73db822..0027ef7 100644
--- a/src/label.c
+++ b/src/label.c
@@ -1451,9 +1451,11 @@ gl_label_rotate_selection (glLabel *label,
                gl_label_object_rotate (object, theta_degs);
        }
 
-        g_list_free (selection_list);
+       g_list_free (selection_list);
 
-        end_selection_op (label);
+       do_modify (label);
+
+       end_selection_op (label);
 
        gl_debug (DEBUG_LABEL, "END");
 }
@@ -1486,9 +1488,11 @@ gl_label_rotate_selection_left (glLabel *label)
                gl_label_object_rotate (object, -90.0);
        }
 
-        g_list_free (selection_list);
+       g_list_free (selection_list);
 
-        end_selection_op (label);
+       do_modify (label);
+
+       end_selection_op (label);
 
        gl_debug (DEBUG_LABEL, "END");
 }
@@ -1521,9 +1525,11 @@ gl_label_rotate_selection_right (glLabel *label)
                gl_label_object_rotate (object, 90.0);
        }
 
-        g_list_free (selection_list);
+       g_list_free (selection_list);
 
-        end_selection_op (label);
+       do_modify (label);
+
+       end_selection_op (label);
 
        gl_debug (DEBUG_LABEL, "END");
 }
@@ -1556,9 +1562,11 @@ gl_label_flip_selection_horiz (glLabel *label)
                gl_label_object_flip_horiz (object);
        }
 
-        g_list_free (selection_list);
+       g_list_free (selection_list);
 
-        end_selection_op (label);
+       do_modify (label);
+
+       end_selection_op (label);
 
        gl_debug (DEBUG_LABEL, "END");
 }
@@ -1591,9 +1599,11 @@ gl_label_flip_selection_vert (glLabel *label)
                gl_label_object_flip_vert (object);
        }
 
-        g_list_free (selection_list);
+       g_list_free (selection_list);
 
-        end_selection_op (label);
+       do_modify (label);
+
+       end_selection_op (label);
 
        gl_debug (DEBUG_LABEL, "END");
 }


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