summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/view/output.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx
index 605057ef91e0..35cd545b2a6e 100644
--- a/sc/source/ui/view/output.cxx
+++ b/sc/source/ui/view/output.cxx
@@ -1958,10 +1958,11 @@ ReferenceMark ScOutputData::FillReferenceMark( SCCOL nRefStartX, SCROW nRefStart
if (bTop && bBottom && bLeft && bRight)
{
- aResult = ReferenceMark( nMinX / mnPPTX * double( aZoomX ),
- nMinY / mnPPTY * double( aZoomY ),
- ( nMaxX - nMinX ) / mnPPTX * double( aZoomX ),
- ( nMaxY - nMinY ) / mnPPTY * double( aZoomY ),
+ // mnPPT[XY] already has the factor aZoom[XY] in it.
+ aResult = ReferenceMark( nMinX / mnPPTX,
+ nMinY / mnPPTY,
+ ( nMaxX - nMinX ) / mnPPTX,
+ ( nMaxY - nMinY ) / mnPPTY,
nTab,
rColor );
}