From 87c66e9e3d7ab1351fac8db9aad80ed01e7634b6 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Thu, 10 Jan 2013 18:41:05 +0100 Subject: 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 Tested-by: Noel Power --- sw/qa/extras/inc/swmodeltestbase.hxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sw/qa/extras/inc') 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(mxComponent.get()); SwDoc* pDoc = pTxtDoc->GetDocShell()->GetDoc(); + pDoc->GetCurrentViewShell()->CalcLayout(); SwRootFrm* pLayout = pDoc->GetCurrentLayout(); pLayout->dumpAsXml(pXmlWriter); -- cgit v1.2.3