diff options
author | Andrzej Hunt <andrzej@ahunt.org> | 2015-11-16 15:30:53 +0100 |
---|---|---|
committer | Andrzej Hunt <andrzej@ahunt.org> | 2015-11-16 15:42:28 +0100 |
commit | 396b5f411f7ecc7d600efdc0bb2381a7d1ed6d88 (patch) | |
tree | 2a8217a24f9667a84bc714c3489eee387d7c9834 /sc | |
parent | f630b6d5f165c8c507b8904b99594936edfd8da0 (diff) |
sc lok: use client zoom for ViewRowColumnHeaders
Change-Id: I85000851f82ea7cdc4b536683adbc8570de9af7e
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 01ca52d393cb..4729cea65d36 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -884,9 +884,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(); |