diff options
Diffstat (limited to 'sw/qa/complex/checkColor/CheckChangeColor.java')
-rwxr-xr-x | sw/qa/complex/checkColor/CheckChangeColor.java | 6 |
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); } |