From 36e1e15c50486e05ff1c3492babd53c4c1e99a33 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Wed, 1 Feb 2012 03:35:21 +0100 Subject: Fill x and y fields in the fake GdkEventMotion struct used when cancelling a drag with the Escape key in the node tool with correct values. (bzr r10927) --- src/ui/tool/control-point.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/tool/control-point.cpp') diff --git a/src/ui/tool/control-point.cpp b/src/ui/tool/control-point.cpp index 8ab7fe64f..8525e92f4 100644 --- a/src/ui/tool/control-point.cpp +++ b/src/ui/tool/control-point.cpp @@ -460,8 +460,8 @@ bool ControlPoint::_eventHandler(SPEventContext *event_context, GdkEvent *event) fake.window = event->key.window; fake.send_event = event->key.send_event; fake.time = event->key.time; - fake.x = 0; // not used in handlers (and shouldn't be) - fake.y = 0; // not used in handlers (and shouldn't be) + fake.x = _drag_event_origin[Geom::X]; // these two are normally not used in handlers + fake.y = _drag_event_origin[Geom::Y]; // (and shouldn't be) fake.axes = NULL; fake.state = 0; // unconstrained drag fake.is_hint = FALSE; -- cgit v1.2.3