summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-08-11 09:39:06 +0200
committerAndrzej Hunt <andrzej.hunt@collabora.com>2014-08-11 09:39:06 +0200
commit554c888341210feeebccdaa2f281996c8c8b9d66 (patch)
tree183f2dae95426afd53cc300a078740fd4bd088ca
parent373d18fbed8d439317a292ffab26b06bc12f71b7 (diff)
Use output device mapping for draw layer too.
Otherwise draw layer items don't get scaled at all for tiled rendering. Change-Id: I4ed54f61420eae82fcf4692b8e9b605a3338fc52
-rw-r--r--sc/source/ui/view/gridwin4.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 4576f404aff3..ce64e505531a 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -606,7 +606,9 @@ void ScGridWindow::Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScUpdateMod
}
// define drawing layer map mode and paint rectangle
- const MapMode aDrawMode = GetDrawMapMode();
+ MapMode aDrawMode = maPaintMapMode;
+ aDrawMode.SetMapUnit( MAP_100TH_MM );
+
Rectangle aDrawingRectLogic;
{