diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-01-17 15:53:45 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-01-17 18:33:36 +0100 |
commit | 52b15c66c90b53f0e663acfcf1b9cdb49c3d564d (patch) | |
tree | 9e9d90e505a4f4a45436536f5a2149775180f535 /sfx2 | |
parent | a827738a57b1ee0c050d4672f27810be36901464 (diff) |
Use convertTwipToMm100 directly
Change-Id: I776f5c1babca523c476a5a094ed219219e1c89c7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128445
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/lokcharthelper.cxx | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/sfx2/source/view/lokcharthelper.cxx b/sfx2/source/view/lokcharthelper.cxx index 1016f90135c1..69ec1a941421 100644 --- a/sfx2/source/view/lokcharthelper.cxx +++ b/sfx2/source/view/lokcharthelper.cxx @@ -26,20 +26,6 @@ using namespace com::sun::star; -namespace { - -Point lcl_TwipsToHMM( const Point& rPoint ) -{ - return Point(convertTwipToMm100(rPoint.getX()), convertTwipToMm100(rPoint.getY())); -} - -Size lcl_TwipsToHMM( const Size& rSize ) -{ - return Size(convertTwipToMm100(rSize.getWidth()), convertTwipToMm100(rSize.getHeight())); -} - -} // end anonymous ns - css::uno::Reference<css::frame::XController>& LokChartHelper::GetXController() { if(!mxController.is() && mpViewShell) @@ -206,8 +192,8 @@ void LokChartHelper::PaintTile(VirtualDevice& rRenderContext, const tools::Recta return; Point aOffset( aChartRect.Left() - rTileRect.Left(), aChartRect.Top() - rTileRect.Top() ); - Point aOffsetFromTile = lcl_TwipsToHMM(aOffset); - Size aSize = lcl_TwipsToHMM(aChartRect.GetSize()); + Point aOffsetFromTile = convertTwipToMm100(aOffset); + Size aSize = convertTwipToMm100(aChartRect.GetSize()); tools::Rectangle aRectangle(Point(0,0), aSize); bool bEnableMapMode = !pChartWindow->IsMapModeEnabled(); |