sw/qa/extras/inc/swmodeltestbase.hxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit 87c66e9e3d7ab1351fac8db9aad80ed01e7634b6 Author: Pierre-Eric Pelloux-Prayer <pierre-e...@lanedo.com> Date: Thu Jan 10 18:41:05 2013 +0100 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.po...@suse.com> Tested-by: Noel Power <noel.po...@suse.com> diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx index cc05b2b..2bb2369 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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits