[Libreoffice-commits] .: sw/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Jan 11 08:28:35 PST 2013
sw/qa/extras/inc/swmodeltestbase.hxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 87c66e9e3d7ab1351fac8db9aad80ed01e7634b6
Author: Pierre-Eric Pelloux-Prayer <pierre-eric at 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.power at suse.com>
Tested-by: Noel Power <noel.power at 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);
More information about the Libreoffice-commits
mailing list