summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-01-22 15:45:49 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2022-01-22 20:02:15 +0100
commit75495067f6f4ba47bb7ff7fe2426f2199c175c78 (patch)
treee8d6146f42227efedd931ac93ea423fd9307e315 /svx
parent5e3ee8a1fff0ef0d77f274d1826a1e63e4a00040 (diff)
Use o3tl::convert instead of OutputDevice::LogicToLogic
Change-Id: Ifb7be992c6e951692a741d10ed24ec8b3836982a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128782 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/table/tablecontroller.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx
index 8001979f5d08..a81140c8ddd1 100644
--- a/svx/source/table/tablecontroller.cxx
+++ b/svx/source/table/tablecontroller.cxx
@@ -2370,7 +2370,7 @@ void SvxTableController::updateSelectionOverlay()
tools::Rectangle aSelection(a2DRange.getMinX(), a2DRange.getMinY(), a2DRange.getMaxX(), a2DRange.getMaxY());
if (pOutDev->GetMapMode().GetMapUnit() == MapUnit::Map100thMM)
- aSelection = OutputDevice::LogicToLogic(aSelection, MapMode(MapUnit::Map100thMM), MapMode(MapUnit::MapTwip));
+ aSelection = o3tl::toTwips(aSelection, o3tl::Length::mm100);
if(SfxViewShell* pViewShell = SfxViewShell::Current())
{