diff options
Diffstat (limited to 'src/ui/tools/text-tool.cpp')
| -rw-r--r-- | src/ui/tools/text-tool.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/tools/text-tool.cpp b/src/ui/tools/text-tool.cpp index 18fefa508..b8d66817b 100644 --- a/src/ui/tools/text-tool.cpp +++ b/src/ui/tools/text-tool.cpp @@ -1669,8 +1669,7 @@ static void sp_text_context_update_cursor(TextTool *tc, bool scroll_to_see) if (opt_frame) { // User units to screen pixels Geom::Rect frame = *opt_frame; - frame *= SP_TEXT(tc->text)->i2doc_affine(); - frame *= SP_ACTIVE_DESKTOP->dt2doc().inverse(); + frame *= tc->text->i2dt_affine(); SP_CTRLRECT(tc->frame)->setRectangle(frame); sp_canvas_item_show(tc->frame); |
