summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2015-03-18 12:08:47 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-03-23 09:19:03 +0100
commit61ebb1b21c37f50b8231472e37af2d88918e1bc3 (patch)
tree5f6208323200f34bfe97be5684318e3d28a2de3e /sc/source/ui
parentd9bc18426d8f6916f5ae4b5acea748921921c293 (diff)
sc tiled editing: Use the correct device for PixelToLogic.
Change-Id: I55e4eb784694de889d7bb0a3a6043a5a2b74239c
Diffstat (limited to 'sc/source/ui')
-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 3e4ce0f2f61c..99a8f1c32590 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -888,7 +888,7 @@ void ScGridWindow::DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableI
rDevice.DrawRect(Rectangle(aStart, aEnd));
rDevice.SetMapMode(bIsTiledRendering? aDrawMode: pViewData->GetLogicMode());
- pEditView->Paint(PixelToLogic(Rectangle(Point(nScrX, nScrY), Size(aOutputData.GetScrW(), aOutputData.GetScrH()))), &rDevice);
+ pEditView->Paint(rDevice.PixelToLogic(Rectangle(Point(nScrX, nScrY), Size(aOutputData.GetScrW(), aOutputData.GetScrH()))), &rDevice);
rDevice.SetMapMode(MAP_PIXEL);
}