diff options
-rw-r--r-- | sw/qa/extras/inc/swmodeltestbase.hxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx index 2bb2369cfb3c..d045780df12a 100644 --- a/sw/qa/extras/inc/swmodeltestbase.hxx +++ b/sw/qa/extras/inc/swmodeltestbase.hxx @@ -88,7 +88,6 @@ 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); @@ -97,6 +96,13 @@ private: xmlFreeTextWriter(pXmlWriter); } + void calcLayout() + { + SwXTextDocument* pTxtDoc = dynamic_cast<SwXTextDocument *>(mxComponent.get()); + SwDoc* pDoc = pTxtDoc->GetDocShell()->GetDoc(); + pDoc->GetCurrentViewShell()->CalcLayout(); + } + protected: /// Get the length of the whole document. @@ -238,6 +244,7 @@ protected: fprintf(stderr, "%s,", pName); m_nStartTime = osl_getGlobalTimer(); mxComponent = loadFromDesktop(getURLFromSrc(pDir) + OUString::createFromAscii(pName)); + calcLayout(); } void reload(OUString aFilter) @@ -257,6 +264,7 @@ protected: xmlBufferFree(mpXmlBuffer); mpXmlBuffer = 0; } + calcLayout(); } void finish() |