summaryrefslogtreecommitdiff
path: root/sw/qa/complex/checkColor
diff options
context:
space:
mode:
Diffstat (limited to 'sw/qa/complex/checkColor')
-rwxr-xr-xsw/qa/complex/checkColor/CheckChangeColor.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/qa/complex/checkColor/CheckChangeColor.java b/sw/qa/complex/checkColor/CheckChangeColor.java
index e77964dc2e21..a072072e18c8 100755
--- a/sw/qa/complex/checkColor/CheckChangeColor.java
+++ b/sw/qa/complex/checkColor/CheckChangeColor.java
@@ -4,6 +4,7 @@ import com.sun.star.awt.Size;
import com.sun.star.beans.XPropertySet;
import com.sun.star.container.XNameAccess;
import com.sun.star.container.XNameContainer;
+import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.style.XStyleFamiliesSupplier;
import com.sun.star.text.XTextDocument;
import com.sun.star.uno.Any;
@@ -61,7 +62,10 @@ public class CheckChangeColor {
}
@Before public void setUpDocument() throws com.sun.star.uno.Exception {
- document = SOfficeFactory.getFactory(connection.getFactory()).
+ document = SOfficeFactory.getFactory(
+ UnoRuntime.queryInterface(
+ XMultiServiceFactory.class,
+ connection.getComponentContext().getServiceManager())).
createTextDoc(null);
}