diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2012-02-01 02:35:21 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2012-02-01 02:35:21 +0000 |
| commit | 36e1e15c50486e05ff1c3492babd53c4c1e99a33 (patch) | |
| tree | d80919726e52ebab332aeefb504370194880cd5a /src/ui/tool/control-point.cpp | |
| parent | Additional fixes for drag cancellation in the node tool (diff) | |
| download | inkscape-36e1e15c50486e05ff1c3492babd53c4c1e99a33.tar.gz inkscape-36e1e15c50486e05ff1c3492babd53c4c1e99a33.zip | |
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)
Diffstat (limited to 'src/ui/tool/control-point.cpp')
| -rw-r--r-- | src/ui/tool/control-point.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
