summaryrefslogtreecommitdiff
path: root/sw/qa/extras/inc
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <pierre-eric@lanedo.com>2013-01-10 18:41:05 +0100
committerNoel Power <noel.power@suse.com>2013-01-11 16:28:16 +0000
commit87c66e9e3d7ab1351fac8db9aad80ed01e7634b6 (patch)
tree5884f265dd34d6cadaa05cf6c3d5b682b47105ea /sw/qa/extras/inc
parent40e0a5d73a5b7a0f23015ee481a94639400f581d (diff)
sw unit test: add call to CalcLayout before using the layout
Change-Id: Ibb3f8175729cb579a687275a11884c397152fe94 Reviewed-on: https://gerrit.libreoffice.org/1645 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'sw/qa/extras/inc')
-rw-r--r--sw/qa/extras/inc/swmodeltestbase.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx
index cc05b2bb39a7..2bb2369cfb3c 100644
--- a/sw/qa/extras/inc/swmodeltestbase.hxx
+++ b/sw/qa/extras/inc/swmodeltestbase.hxx
@@ -88,6 +88,7 @@ private:
// create the dump
SwXTextDocument* pTxtDoc = dynamic_cast<SwXTextDocument *>(mxComponent.get());
SwDoc* pDoc = pTxtDoc->GetDocShell()->GetDoc();
+ pDoc->GetCurrentViewShell()->CalcLayout();
SwRootFrm* pLayout = pDoc->GetCurrentLayout();
pLayout->dumpAsXml(pXmlWriter);