sw unit test: layout dump must be resetted in 'reload' method

Otherwise tests relying on layout dumps will parse the wrong dump.

Change-Id: Ib7b4bc3a231eb3082567a1d1ed38c96835d43add
Reviewed-on: https://gerrit.libreoffice.org/1643
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2013-01-10 16:29:58 +01:00
committed by Noel Power
parent 3914d00c32
commit 58aeb8e6aa

View File

@@ -251,6 +251,11 @@ protected:
uno::Reference<lang::XComponent> xComponent(xStorable, uno::UNO_QUERY);
xComponent->dispose();
mxComponent = loadFromDesktop(aTempFile.GetURL());
if (mpXmlBuffer)
{
xmlBufferFree(mpXmlBuffer);
mpXmlBuffer = 0;
}
}
void finish()