diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2019-07-27 21:33:05 -0400 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-08-02 22:36:32 +0200 |
commit | 5a9bdcbb0dfd6f149d243cd69e158aa3ad70dd91 (patch) | |
tree | 65e7c1db403e17a44f15c4b9bf60ddfe6d8dfda0 /sc | |
parent | c7a86aa54bc4357a82a7fb584cbc5e6606b9e2c0 (diff) |
calc: simplify getDocumentSize calculation.
Change-Id: Iee2ebf2c6ed74651556647264f519caa9c59dad7
Reviewed-on: https://gerrit.libreoffice.org/76492
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 9c7f24611cf5..640e35ec4c89 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -617,15 +617,7 @@ Size ScModelObj::getDocumentSize() }; long nDocWidthPixel = pViewData->GetLOKWidthHelper().computePosition(nEndCol, GetColWidthPx); - - - auto GetRowHeightPx = [pThisDoc, nTab](SCROW nRow) { - const sal_uInt16 nSize = pThisDoc->GetRowHeight(nRow, nTab); - return ScViewData::ToPixel(nSize, 1.0 / TWIPS_PER_PIXEL); - }; - - long nDocHeightPixel = pViewData->GetLOKHeightHelper().computePosition(nEndRow, GetRowHeightPx); - + long nDocHeightPixel = pThisDoc->GetScaledRowHeight( 0, nEndRow, nTab, 1.0 / TWIPS_PER_PIXEL ); if (nDocWidthPixel > 0 && nDocHeightPixel > 0) { |