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/tools-switch.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 '')
| -rw-r--r-- | src/tools-switch.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools-switch.cpp b/src/tools-switch.cpp index f10b86f64..9fbc966c6 100644 --- a/src/tools-switch.cpp +++ b/src/tools-switch.cpp @@ -234,7 +234,7 @@ tools_switch(SPDesktop *dt, int num) } } -void tools_switch_by_item(SPDesktop *dt, SPItem *item) +void tools_switch_by_item(SPDesktop *dt, SPItem *item, Geom::Point const p) { if (SP_IS_RECT(item)) { tools_switch(dt, TOOLS_SHAPES_RECT); @@ -255,6 +255,7 @@ void tools_switch_by_item(SPDesktop *dt, SPItem *item) } } else if (SP_IS_TEXT(item) || SP_IS_FLOWTEXT(item)) { tools_switch(dt, TOOLS_TEXT); + sp_text_context_place_cursor_at (SP_TEXT_CONTEXT(dt->event_context), SP_OBJECT(item), p); } else if (SP_IS_OFFSET(item)) { tools_switch(dt, TOOLS_NODES); } |
