summaryrefslogtreecommitdiff
path: root/sw/source/filter/html/htmlflywriter.cxx
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 /sw/source/filter/html/htmlflywriter.cxx
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 'sw/source/filter/html/htmlflywriter.cxx')
-rw-r--r--sw/source/filter/html/htmlflywriter.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/filter/html/htmlflywriter.cxx b/sw/source/filter/html/htmlflywriter.cxx
index 2aee659fc6e8..75938fbe217c 100644
--- a/sw/source/filter/html/htmlflywriter.cxx
+++ b/sw/source/filter/html/htmlflywriter.cxx
@@ -1937,10 +1937,9 @@ static Writer& OutHTML_FrameFormatGrfNode( Writer& rWrt, const SwFrameFormat& rF
default: break;
}
- Size aMM100Size;
const SwFormatFrameSize& rSize = rFrameFormat.GetFrameSize();
- aMM100Size = OutputDevice::LogicToLogic( rSize.GetSize(),
- MapMode( MapUnit::MapTwip ), MapMode( MapUnit::Map100thMM ));
+ Size aMM100Size = o3tl::convert( rSize.GetSize(),
+ o3tl::Length::twip, o3tl::Length::mm100 );
OUString aFilterName("");