summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-06-24 22:06:59 +0100
committerAndrzej Hunt <andrzej.hunt@collabora.com>2014-07-01 09:19:36 +0200
commit72b3fb874c561b41c6446cb33ca1fd2872c868ed (patch)
treeb4746daceae417d4709d6e9accbd2a3358d8e298
parent76e2b5aaf3d1715f0f7eefe00f1dfb6a54ed1ced (diff)
Use output device mapping for draw layer too.
Otherwise draw layer items don't get scaled at all for tiled rendering. Change-Id: If65d460a83fb29b8eda692cb7c1f2bd9f7283e62
-rw-r--r--sc/source/ui/view/gridwin4.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index eb5814485f4b..68eb9f1ee242 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -602,7 +602,8 @@ 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 = pOutDev->GetMapMode();
+ aDrawMode.SetMapUnit( MAP_100TH_MM );
Rectangle aDrawingRectLogic;
{