diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-01-06 23:07:42 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-01-07 00:02:47 +0900 |
commit | 83e84b9a22f959d2feae7ac89ec5a0b0ef678770 (patch) | |
tree | 5524ec11d872b269ffb4d4fe5749247d4f6b536c /sw/source/uibase | |
parent | 6123d6a9fbb268f823224d054cb0fe215aa3015a (diff) |
android: take document borders into account for document size
Change-Id: I62b0afd635b439653850a3d830de032006505bac
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index ea3683fc8017..d504fc0e860e 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3140,7 +3140,10 @@ Size SwXTextDocument::getDocumentSize() { SwDoc* pDoc = pDocShell->GetDoc(); SwViewShell* pViewShell = pDoc->getIDocumentLayoutAccess().GetCurrentViewShell(); - return pViewShell->GetDocSize(); + Size aDocSize = pViewShell->GetDocSize(); + + return Size(aDocSize.Width() + 2L * DOCUMENTBORDER, + aDocSize.Height() + 2L * DOCUMENTBORDER); } void * SAL_CALL SwXTextDocument::operator new( size_t t) throw() |