summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/shells')
-rw-r--r--sw/source/uibase/shells/textsh.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx
index 114ce385e4d3..76be2461935a 100644
--- a/sw/source/uibase/shells/textsh.cxx
+++ b/sw/source/uibase/shells/textsh.cxx
@@ -351,8 +351,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq)
if(pItem && xObj.is())
{
Size aSize(static_cast<const SvxSizeItem*>(pItem)->GetSize());
- aSize = OutputDevice::LogicToLogic
- ( aSize, MapMode( MapUnit::MapTwip ), MapMode( MapUnit::Map100thMM ) );
+ aSize = o3tl::convert(aSize, o3tl::Length::twip, o3tl::Length::mm100);
if(aSize.Width() > MINLAY&& aSize.Height()> MINLAY)
{