[Libreoffice-commits] .: sw/qa

Michael Stahl mst at kemper.freedesktop.org
Mon Mar 5 03:33:23 PST 2012


 sw/qa/complex/writer/CheckFields.java |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 72a3c7a2778c493ef1d3f740a0b4b14f805c624a
Author: Michael Stahl <mstahl at redhat.com>
Date:   Mon Mar 5 12:32:39 2012 +0100

    sw: CheckFields: oops, forgot to close the document

diff --git a/sw/qa/complex/writer/CheckFields.java b/sw/qa/complex/writer/CheckFields.java
index f966e52..00c6916 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


More information about the Libreoffice-commits mailing list