Kaydet (Commit) 72a3c7a2 authored tarafından Michael Stahl's avatar Michael Stahl

sw: CheckFields: oops, forgot to close the document

üst 870e5a8e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment