sfx2/source/view/lokcharthelper.cxx |   18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)

New commits:
commit 52b15c66c90b53f0e663acfcf1b9cdb49c3d564d
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Mon Jan 17 15:53:45 2022 +0100
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Mon Jan 17 18:33:36 2022 +0100

    Use convertTwipToMm100 directly
    
    Change-Id: I776f5c1babca523c476a5a094ed219219e1c89c7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128445
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

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();

Reply via email to