summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-03-16 13:46:53 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-03-23 09:18:58 +0100
commit8b5f18ea3eef19fca12b611b647e0de14f64f68c (patch)
tree392485f09c1e77384c5898291b80498b12424cfb
parent43a503cfc9e7ac627b4202985c173403a57f80a5 (diff)
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
-rw-r--r--sc/source/ui/view/gridwin4.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 87c3cab24d87..3e4ce0f2f61c 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);
}