diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-08-11 13:13:35 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-08-11 14:19:24 +0200 |
commit | bfed58821fc3a83fec4a985087cd45fa963bed3e (patch) | |
tree | 427156ed03b2b72069e47d9f1250dc36670c09cf /svx/source/items/grfitem.cxx | |
parent | c46950fee11f5207fb8324947280cd565ae483e7 (diff) |
Drop convertMm100ToTwip in favor of the new o3tl::toTwips
Step by step, duplicates from <tools/UnitConversion.hxx> may go
Change-Id: Id4c03ff8adc120ae06dbfdbdfb4f5ff0bb51f489
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120315
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx/source/items/grfitem.cxx')
-rw-r--r-- | svx/source/items/grfitem.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/items/grfitem.cxx b/svx/source/items/grfitem.cxx index 2c0b678fbd3c..b241738f313f 100644 --- a/svx/source/items/grfitem.cxx +++ b/svx/source/items/grfitem.cxx @@ -83,10 +83,10 @@ bool SvxGrfCrop::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) return false; if( bConvert ) { - aVal.Right = convertMm100ToTwip(aVal.Right ); - aVal.Top = convertMm100ToTwip(aVal.Top ); - aVal.Left = convertMm100ToTwip(aVal.Left ); - aVal.Bottom = convertMm100ToTwip(aVal.Bottom); + aVal.Right = o3tl::toTwips(aVal.Right, o3tl::Length::mm100); + aVal.Top = o3tl::toTwips(aVal.Top, o3tl::Length::mm100); + aVal.Left = o3tl::toTwips(aVal.Left, o3tl::Length::mm100); + aVal.Bottom = o3tl::toTwips(aVal.Bottom, o3tl::Length::mm100); } nLeft = aVal.Left ; |