summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/unoctitm.cxx2
-rw-r--r--sfx2/source/view/ipclient.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 235812a239ea..3d3bfd430c4f 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1236,7 +1236,7 @@ static void InterceptLOKStateChangeEvent(sal_uInt16 nSID, SfxViewFrame* pViewFra
{
float nScaleValue = 1000.0;
nValue *= nScaleValue;
- sal_Int32 nConvertedValue = OutputDevice::LogicToLogic(nValue, MapUnit::MapTwip, MapUnit::MapInch);
+ sal_Int32 nConvertedValue = o3tl::convert(nValue, o3tl::Length::twip, o3tl::Length::in);
aBuffer.append(nConvertedValue / nScaleValue);
}
}
diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx
index 3c40c7bdf4a6..7484033b2808 100644
--- a/sfx2/source/view/ipclient.cxx
+++ b/sfx2/source/view/ipclient.cxx
@@ -342,7 +342,7 @@ void SAL_CALL SfxInPlaceClient_Impl::activatingInplace()
if (m_pClient->GetEditWin())
{
if (m_pClient->GetEditWin()->GetMapMode().GetMapUnit() == MapUnit::Map100thMM)
- aRect = OutputDevice::LogicToLogic(aRect, MapMode(MapUnit::Map100thMM), MapMode(MapUnit::MapTwip));
+ aRect = o3tl::convert(aRect, o3tl::Length::mm100, o3tl::Length::twip);
}
OString str = aRect.toString() + ", \"INPLACE\"";