From 72a3c7a2778c493ef1d3f740a0b4b14f805c624a Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Mon, 5 Mar 2012 12:32:39 +0100 Subject: sw: CheckFields: oops, forgot to close the document --- sw/qa/complex/writer/CheckFields.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sw/qa/complex/writer') diff --git a/sw/qa/complex/writer/CheckFields.java b/sw/qa/complex/writer/CheckFields.java index f966e52a3c8d..00c6916efc19 100644 --- a/sw/qa/complex/writer/CheckFields.java +++ b/sw/qa/complex/writer/CheckFields.java @@ -36,6 +36,7 @@ import com.sun.star.lang.XServiceInfo; import com.sun.star.beans.XPropertySet; import com.sun.star.beans.PropertyValue; import com.sun.star.container.XEnumeration; +import com.sun.star.util.XCloseable; import com.sun.star.text.XText; import com.sun.star.text.XTextContent; import com.sun.star.text.XTextDocument; @@ -138,6 +139,11 @@ public class CheckFields } } assertTrue(placeholders.isEmpty()); + XCloseable xClos = (XCloseable) UnoRuntime.queryInterface( + XCloseable.class, xComp); + if (xClos != null) { + xClos.close(true); + } } @Test -- cgit