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

Jan Holesovsky kendy at collabora.com
Mon Mar 16 06:00:37 PDT 2015


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

New commits:
commit 17a20bc3d047615d9f8820490b63709855e3f238
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Mon Mar 16 13:46:53 2015 +0100

    sc tiled editing: Set the correct map mode for editeng.
    
    When we are entering some text into the sheet, now it happens at the correct
    place.  Unfortunately we are still invalidating the wrong area, so it is not
    really visible unless you tweak the ScGridWindow::LogicInvalidate() to
    invalidate much more tiles.
    
    Change-Id: I74a568761c3b21522fe291649c33829aaea200e7

diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 87c3cab..3e4ce0f 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -887,7 +887,7 @@ void ScGridWindow::DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableI
         aEnd.Y() -= 2;
         rDevice.DrawRect(Rectangle(aStart, aEnd));
 
-        rDevice.SetMapMode(pViewData->GetLogicMode());
+        rDevice.SetMapMode(bIsTiledRendering? aDrawMode: pViewData->GetLogicMode());
         pEditView->Paint(PixelToLogic(Rectangle(Point(nScrX, nScrY), Size(aOutputData.GetScrW(), aOutputData.GetScrH()))), &rDevice);
         rDevice.SetMapMode(MAP_PIXEL);
     }


More information about the Libreoffice-commits mailing list