diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-03-25 10:11:52 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-30 09:23:47 +0200 |
commit | 5d31f2d94dd7686d5740ec69782a35ebe97d768a (patch) | |
tree | 32346b90a77cc8e76dfa030c109fe5ce14c92620 | |
parent | 4f658bf3eee7e2f5b72e979cee09188414dd0530 (diff) |
No need to create ScAddress here.
Change-Id: Ide41495574e8a1d89f9be4f823e4d85d3742b450
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 9ccab40c0a1d..683573cff871 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -514,14 +514,9 @@ Size ScModelObj::getDocumentSize() if (!rDoc.GetPrintArea( nTab, nEndCol, nEndRow, false )) return aSize; - ScAddress aPos( nEndCol, nEndRow, nTab ); - - // TWIPS - sal_uLong nH = rDoc.GetRowHeight(0, aPos.Row(), nTab, true); - sal_uLong nW = rDoc.GetColWidth(0, aPos.Col(), nTab, true); - - aSize.setWidth(nW); - aSize.setHeight(nH); + // convert to twips + aSize.setWidth(rDoc.GetColWidth(0, nEndCol, nTab, true)); + aSize.setHeight(rDoc.GetRowHeight(0, nEndRow, nTab, true)); return aSize; } |