summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-03-05 12:32:39 +0100
committerMichael Stahl <mstahl@redhat.com>2012-03-05 12:32:39 +0100
commit72a3c7a2778c493ef1d3f740a0b4b14f805c624a (patch)
treedd96e5d709e664da0af5196d1eb4ef26f82d9476
parent870e5a8e8251967b513b4255231ee9665b085431 (diff)
sw: CheckFields: oops, forgot to close the document
-rw-r--r--sw/qa/complex/writer/CheckFields.java6
1 files changed, 6 insertions, 0 deletions
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