summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej@ahunt.org>2015-11-16 15:30:53 +0100
committerAndrzej Hunt <andrzej@ahunt.org>2015-11-16 15:43:18 +0100
commitbbbe7f57d3af266a4e922b4f007472d5139647ee (patch)
tree5721e7921f2faba3b8c5cb677cdc1358a8619ccd /sc/source
parent8a5cf61b7b0dc6668c283fe9476b3474736d33bc (diff)
sc lok: use client zoom for ViewRowColumnHeaders
Change-Id: I85000851f82ea7cdc4b536683adbc8570de9af7e (cherry picked from commit 396b5f411f7ecc7d600efdc0bb2381a7d1ed6d88)
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/unoobj/docuno.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 5b0caaa7431f..2fc376c9a26c 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -867,9 +867,14 @@ void ScModelObj::setClientZoom(int nTilePixelWidth_, int nTilePixelHeight_, int
OUString ScModelObj::getRowColumnHeaders(const Rectangle& rRectangle)
{
ScViewData* pViewData = ScDocShell::GetViewData();
+
if (!pViewData)
return OUString();
+ // update the aLogicMode in ScViewData to something predictable
+ pViewData->SetZoom(Fraction(nTilePixelWidth * TWIPS_PER_PIXEL, nTileTwipWidth),
+ Fraction(nTilePixelHeight * TWIPS_PER_PIXEL, nTileTwipHeight), true);
+
ScTabView* pTabView = pViewData->GetView();
if (!pTabView)
return OUString();