]> git.sur5r.net Git - glabels/commitdiff
View box's object will track position in object editor.
authorJim Evins <evins@snaught.com>
Sun, 7 Dec 2003 03:35:41 +0000 (03:35 +0000)
committerJim Evins <evins@snaught.com>
Sun, 7 Dec 2003 03:35:41 +0000 (03:35 +0000)
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@370 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/src/view-box.c

index c9bfb8ebb7c9adca7eeed8c478fc34836c2a1ee7..92cac0b632f426d3183a15e3ab30bb94306eed88 100644 (file)
@@ -284,7 +284,7 @@ static void
 update_object_from_editor_cb (glObjectEditor *editor,
                              glLabelObject  *object)
 {
-       gdouble            w, h;
+       gdouble            x, y, w, h;
        guint              line_color, fill_color;
        gdouble            line_width;
 
@@ -297,6 +297,9 @@ update_object_from_editor_cb (glObjectEditor *editor,
                                         update_editor_from_move_cb,
                                         editor);
 
+       gl_object_editor_get_position (editor, &x, &y);
+       gl_label_object_set_position (object, x, y);
+
        gl_object_editor_get_size (editor, &w, &h);
        gl_label_object_set_size (object, w, h);