diff options
author | Dennis Francis <dennis.francis@collabora.com> | 2020-01-21 22:11:19 +0530 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-05-18 17:17:13 +0200 |
commit | 3c4e4cc92d0850d53b2a875bc4ffd09883521c7f (patch) | |
tree | caf53d12e5193f8f8e12389c64d91afcf7c91f6f /sc/source/ui/view/output.cxx | |
parent | 432dd816c7bbf69542f07cb6c98b9a2cd225e95b (diff) |
tdf#130112 lok: Do not apply zoom-factor twice...
... in ScOutputData::FillReferenceMarks().
mnPPT[XY] already has the factor aZoom[XY] in it. Refer
ScViewData::CalcPPT() to see how PPT[XY] are derived.
Change-Id: I3f9b5c01cb53514450fad5f7b2b6861b112effdb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87158
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
(cherry picked from commit 3f62c10548466119ec6b1a662ab339e5dbe0b05f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87170
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
Diffstat (limited to 'sc/source/ui/view/output.cxx')
-rw-r--r-- | sc/source/ui/view/output.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx index e14647bd7954..ced84e795ecd 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 ); } |