[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - sc/source
Michael Meeks (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jul 29 14:17:38 UTC 2019
sc/source/ui/unoobj/docuno.cxx | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
New commits:
commit 3afa75a5bb3367d763c9ef4daca05b806e3b5ee2
Author: Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Sat Jul 27 21:33:05 2019 -0400
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Mon Jul 29 16:16:56 2019 +0200
calc: simplify getDocumentSize calculation.
Change-Id: Iee2ebf2c6ed74651556647264f519caa9c59dad7
Reviewed-on: https://gerrit.libreoffice.org/76542
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 56b01d0d95d0..5f8d326096a5 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -618,15 +618,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)
{
More information about the Libreoffice-commits
mailing list