[Libreoffice-commits] core.git: Branch 'private/ajrhunt/c4' - sc/source

Andrzej Hunt andrzej.hunt at collabora.com
Tue Sep 30 12:03:56 PDT 2014


 sc/source/ui/view/gridwin3.cxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit ff398161eab8735bb036b1e48779ea57798c9cad
Author: Andrzej Hunt <andrzej.hunt at collabora.com>
Date:   Tue Sep 30 20:03:26 2014 +0100

    Temp: the DrView scaling will be completely wrong for tiled rendering.
    
    (No idea why yet)
    
    Change-Id: I9fcbd9055d82feb59b1c957234c9d7747f95ced9

diff --git a/sc/source/ui/view/gridwin3.cxx b/sc/source/ui/view/gridwin3.cxx
index e9ac6ca..d9343d1 100644
--- a/sc/source/ui/view/gridwin3.cxx
+++ b/sc/source/ui/view/gridwin3.cxx
@@ -249,10 +249,10 @@ MapMode ScGridWindow::GetDrawMapMode( bool bForce )
     {
         Fraction aScaleX;
         Fraction aScaleY;
-        if (pDrView)
-            pDrView->GetScale( aScaleX, aScaleY );
-        else
-        {
+        // if (pDrView)
+        //     pDrView->GetScale( aScaleX, aScaleY );
+        // else
+        // {
             SCCOL nEndCol = 0;
             SCROW nEndRow = 0;
             pDoc->GetTableArea( nTab, nEndCol, nEndRow );
@@ -262,7 +262,7 @@ MapMode ScGridWindow::GetDrawMapMode( bool bForce )
                                     pViewData->GetZoomX(),pViewData->GetZoomY(),
                                     pViewData->GetPPTX(),pViewData->GetPPTY(),
                                     aScaleX,aScaleY );
-        }
+        // }
         aDrawMode.SetScaleX(aScaleX);
         aDrawMode.SetScaleY(aScaleY);
     }


More information about the Libreoffice-commits mailing list