From 61ebb1b21c37f50b8231472e37af2d88918e1bc3 Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Wed, 18 Mar 2015 12:08:47 +0100 Subject: sc tiled editing: Use the correct device for PixelToLogic. Change-Id: I55e4eb784694de889d7bb0a3a6043a5a2b74239c --- sc/source/ui/view/gridwin4.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit