From 3ffefe1e05e3858ce6584dc644817c411232dc77 Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Sun, 18 Aug 2019 17:29:16 +0200 Subject: reduce usage of desktop coordinates (#341) - avoid unnecessary internal usage of desktop coordinates, e.g. in SpellCheck::compareTextBboxes - document whether a function argument is in document or desktop coordinates, e.g. for SPDocument::getItemsInBox --- src/object/sp-offset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/object/sp-offset.cpp') diff --git a/src/object/sp-offset.cpp b/src/object/sp-offset.cpp index 667fdf9c3..b837d7855 100644 --- a/src/object/sp-offset.cpp +++ b/src/object/sp-offset.cpp @@ -412,7 +412,7 @@ void SPOffset::set_shape() { theRes->ConvertToForme (orig, 1, originaux); - Geom::OptRect bbox = this->desktopVisualBounds(); + Geom::OptRect bbox = this->documentVisualBounds(); if ( bbox ) { gdouble size = L2(bbox->dimensions()); -- cgit v1.2.3