diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2019-07-27 21:33:05 -0400 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-07-30 08:57:49 +0200 |
commit | e8d908a1c892147b72c687cfecaadf60a93c71a8 (patch) | |
tree | 8f8064ee085f68a00ddf41c090b33c6102493158 | |
parent | aa5b94d614381ec9776e998c27ed87bd55c968fc (diff) |
calc: simplify getDocumentSize calculation.
Change-Id: Iee2ebf2c6ed74651556647264f519caa9c59dad7
Reviewed-on: https://gerrit.libreoffice.org/76558
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-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 58c58b904aea..faba8a57b39e 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -607,15 +607,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) { |