From 63203fb881bfce667a14b2bbb3ec2ee40a9adf77 Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Sat, 27 Jul 2019 14:40:29 +0000 Subject: Make doc2dt a document property Closes #340 --- src/ui/tools/text-tool.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ui/tools/text-tool.cpp') 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); -- cgit v1.2.3