[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - sc/source

Henry Castro hcastro at collabora.com
Thu Apr 2 13:14:25 PDT 2015


 sc/source/ui/view/gridwin4.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ded91f854324c32c70653f1a9b0720184691fd09
Author: Henry Castro <hcastro at collabora.com>
Date:   Thu Apr 2 16:08:57 2015 -0400

    sc tiled editing: Changed function to PixelToLogic.
    
    The default DPI is 72 using static function OutputDevice::LogicToLogic.
    
    Change-Id: I8aba7e74f745092a34e8b50c4e52f84c1de77695

diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 81c4136..7202f3d 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -994,7 +994,7 @@ void ScGridWindow::LogicInvalidate(const Rectangle* pRectangle)
                 aRectangle = OutputDevice::LogicToLogic(aRectangle, MAP_100TH_MM, MAP_TWIP);
         }
         else
-            aRectangle = OutputDevice::LogicToLogic(aRectangle, MAP_PIXEL, MAP_TWIP);
+            aRectangle = PixelToLogic(aRectangle, MapMode(MAP_TWIP));
         sRectangle = aRectangle.toString();
     }
 


More information about the Libreoffice-commits mailing list