summaryrefslogtreecommitdiff
path: root/sc/qa/unit/tiledrendering/tiledrendering.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/unit/tiledrendering/tiledrendering.cxx')
-rw-r--r--sc/qa/unit/tiledrendering/tiledrendering.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/qa/unit/tiledrendering/tiledrendering.cxx b/sc/qa/unit/tiledrendering/tiledrendering.cxx
index 315910de60ac..7bdf8f189239 100644
--- a/sc/qa/unit/tiledrendering/tiledrendering.cxx
+++ b/sc/qa/unit/tiledrendering/tiledrendering.cxx
@@ -203,6 +203,11 @@ ScModelObj* ScTiledRenderingTest::createDoc(const char* pName)
ScModelObj* pModelObj = dynamic_cast<ScModelObj*>(mxComponent.get());
CPPUNIT_ASSERT(pModelObj);
pModelObj->initializeForTiledRendering(uno::Sequence<beans::PropertyValue>());
+ // Without a zoom reset the docshell "output-factor" computed in ScModelObj::initializeForTiledRendering is not
+ // reflected in view-data nPPTX without an explicit CalcPPT() call.
+ ScViewData* pViewData = ScDocShell::GetViewData();
+ if (pViewData)
+ pViewData->RefreshZoom();
return pModelObj;
}