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

Andrzej Hunt andrzej.hunt at collabora.com
Tue Jun 24 14:18:05 PDT 2014


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

New commits:
commit a8c6465352bfff894353765d54a434b1cf8a356c
Author: Andrzej Hunt <andrzej.hunt at collabora.com>
Date:   Tue Jun 24 22:06:59 2014 +0100

    Use output device mapping for draw layer too.
    
    Otherwise draw layer items don't get scaled at all for tiled
    rendering.
    
    Change-Id: If65d460a83fb29b8eda692cb7c1f2bd9f7283e62

diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index e3ea993b..1f771a5 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -603,7 +603,8 @@ void ScGridWindow::Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScUpdateMod
     }
 
     // define drawing layer map mode and paint rectangle
-    const MapMode aDrawMode = GetDrawMapMode();
+    MapMode aDrawMode = pOutDev->GetMapMode();
+    aDrawMode.SetMapUnit( MAP_100TH_MM );
     Rectangle aDrawingRectLogic;
 
     {


More information about the Libreoffice-commits mailing list