Kaydet (Commit) 61ebb1b2 authored tarafından Henry Castro's avatar Henry Castro Kaydeden (comit) Miklos Vajna

sc tiled editing: Use the correct device for PixelToLogic.

Change-Id: I55e4eb784694de889d7bb0a3a6043a5a2b74239c
üst d9bc1842
...@@ -888,7 +888,7 @@ void ScGridWindow::DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableI ...@@ -888,7 +888,7 @@ void ScGridWindow::DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableI
rDevice.DrawRect(Rectangle(aStart, aEnd)); rDevice.DrawRect(Rectangle(aStart, aEnd));
rDevice.SetMapMode(bIsTiledRendering? aDrawMode: pViewData->GetLogicMode()); 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); rDevice.SetMapMode(MAP_PIXEL);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment