Kaydet (Commit) 87c66e9e authored tarafından Pierre-Eric Pelloux-Prayer's avatar Pierre-Eric Pelloux-Prayer Kaydeden (comit) Noel Power

sw unit test: add call to CalcLayout before using the layout

Change-Id: Ibb3f8175729cb579a687275a11884c397152fe94
Reviewed-on: https://gerrit.libreoffice.org/1645Reviewed-by: 's avatarNoel Power <noel.power@suse.com>
Tested-by: 's avatarNoel Power <noel.power@suse.com>
üst 40e0a5d7
...@@ -88,6 +88,7 @@ private: ...@@ -88,6 +88,7 @@ private:
// create the dump // create the dump
SwXTextDocument* pTxtDoc = dynamic_cast<SwXTextDocument *>(mxComponent.get()); SwXTextDocument* pTxtDoc = dynamic_cast<SwXTextDocument *>(mxComponent.get());
SwDoc* pDoc = pTxtDoc->GetDocShell()->GetDoc(); SwDoc* pDoc = pTxtDoc->GetDocShell()->GetDoc();
pDoc->GetCurrentViewShell()->CalcLayout();
SwRootFrm* pLayout = pDoc->GetCurrentLayout(); SwRootFrm* pLayout = pDoc->GetCurrentLayout();
pLayout->dumpAsXml(pXmlWriter); pLayout->dumpAsXml(pXmlWriter);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment