diff options
| author | bulia byak <buliabyak@gmail.com> | 2009-02-16 01:16:56 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2009-02-16 01:16:56 +0000 |
| commit | a59cb6955c69aa0a97c44995cc0ab1ad94c796de (patch) | |
| tree | 760cacbea0d06997b21db77ba6fbd0b1d985a7c9 /src/select-context.cpp | |
| parent | utilities for getting style at cursor, placing cursor at iterator or coordina... (diff) | |
| download | inkscape-a59cb6955c69aa0a97c44995cc0ab1ad94c796de.tar.gz inkscape-a59cb6955c69aa0a97c44995cc0ab1ad94c796de.zip | |
make doubleclick not only switch to text but also position cursor
(bzr r7300)
Diffstat (limited to 'src/select-context.cpp')
| -rw-r--r-- | src/select-context.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/select-context.cpp b/src/select-context.cpp index fd4e132e1..0e35c6546 100644 --- a/src/select-context.cpp +++ b/src/select-context.cpp @@ -430,7 +430,9 @@ sp_select_context_root_handler(SPEventContext *event_context, GdkEvent *event) sp_canvas_end_forced_full_redraws(desktop->canvas); } else { // switch tool - tools_switch_by_item (desktop, clicked_item); + Geom::Point const button_pt(event->button.x, event->button.y); + Geom::Point const p(desktop->w2d(button_pt)); + tools_switch_by_item (desktop, clicked_item, p); } } else { sp_select_context_up_one_layer(desktop); |
