diff options
Diffstat (limited to 'glabels2/src/view-box.c')
-rw-r--r-- | glabels2/src/view-box.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glabels2/src/view-box.c b/glabels2/src/view-box.c index 545fd8d..6fe809d 100644 --- a/glabels2/src/view-box.c +++ b/glabels2/src/view-box.c @@ -686,8 +686,8 @@ gl_view_box_create_event_handler (GnomeCanvas *canvas, case GDK_MOTION_NOTIFY: if (dragging && (event->motion.state & GDK_BUTTON1_MASK)) { gnome_canvas_window_to_world (canvas, - event->button.x, - event->button.y, &x, &y); + event->motion.x, + event->motion.y, &x, &y); gl_label_object_set_position (GL_LABEL_OBJECT(object), MIN (x, x0), MIN (y, y0)); gl_debug (DEBUG_VIEW, "BUTTON_MOTION (%f, %f) -> (%f, %f)", event->button.x, event->button.y, x, y); |