Kaydet (Commit) 5d31f2d9 authored tarafından Jan Holesovsky's avatar Jan Holesovsky Kaydeden (comit) Miklos Vajna

No need to create ScAddress here.

Change-Id: Ide41495574e8a1d89f9be4f823e4d85d3742b450
üst 4f658bf3
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment