diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-01-22 15:45:49 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-01-22 20:02:15 +0100 |
commit | 75495067f6f4ba47bb7ff7fe2426f2199c175c78 (patch) | |
tree | e8d6146f42227efedd931ac93ea423fd9307e315 /reportdesign/source | |
parent | 5e3ee8a1fff0ef0d77f274d1826a1e63e4a00040 (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 'reportdesign/source')
-rw-r--r-- | reportdesign/source/ui/misc/UITools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/reportdesign/source/ui/misc/UITools.cxx b/reportdesign/source/ui/misc/UITools.cxx index 066d330df338..243474ac39de 100644 --- a/reportdesign/source/ui/misc/UITools.cxx +++ b/reportdesign/source/ui/misc/UITools.cxx @@ -393,7 +393,7 @@ namespace if ( SfxItemState::SET == _rItemSet.GetItemState( _nFontHeight,true,&pItem) ) if ( auto pFontItem = dynamic_cast< const SvxFontHeightItem *>( pItem ) ) { - aNewFont.SetFontHeight(OutputDevice::LogicToLogic(Size(0, pFontItem->GetHeight()), MapMode(MapUnit::MapTwip), MapMode(MapUnit::MapPoint)).Height()); + aNewFont.SetFontHeight(o3tl::convert(pFontItem->GetHeight(), o3tl::Length::twip, o3tl::Length::pt)); } if ( SfxItemState::SET == _rItemSet.GetItemState( _nPosture,true,&pItem) ) if ( auto pFontItem = dynamic_cast< const SvxPostureItem *>( pItem ) ) |