From: Jim Evins Date: Sun, 7 Dec 2003 03:35:41 +0000 (+0000) Subject: View box's object will track position in object editor. X-Git-Tag: glabels-2_3_0~524 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4d2997726e0d0c5a27e95cf674132c3f3a293d96;p=glabels View box's object will track position in object editor. git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@370 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- diff --git a/glabels2/src/view-box.c b/glabels2/src/view-box.c index c9bfb8eb..92cac0b6 100644 --- a/glabels2/src/view-box.c +++ b/glabels2/src/view-box.c @@ -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);