diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-03-05 12:32:39 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-03-05 12:32:39 +0100 |
commit | 72a3c7a2778c493ef1d3f740a0b4b14f805c624a (patch) | |
tree | dd96e5d709e664da0af5196d1eb4ef26f82d9476 /sw | |
parent | fdo#39694, fdo#42073: add junit test for these (diff) | |
download | core-72a3c7a2778c493ef1d3f740a0b4b14f805c624a.tar.gz core-72a3c7a2778c493ef1d3f740a0b4b14f805c624a.zip |
sw: CheckFields: oops, forgot to close the document
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/complex/writer/CheckFields.java | 6 |
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 |