summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdouno.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svdouno.cxx')
-rw-r--r--svx/source/svdraw/svdouno.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdouno.cxx b/svx/source/svdraw/svdouno.cxx
index daa6c07aab37..f9f2ca7b689b 100644
--- a/svx/source/svdraw/svdouno.cxx
+++ b/svx/source/svdraw/svdouno.cxx
@@ -485,11 +485,11 @@ void SdrUnoObj::CreateUnoControlModel(const String& rModelName)
aUnoControlModelTypeName = rModelName;
uno::Reference< awt::XControlModel > xModel;
- uno::Reference< lang::XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() );
- if (aUnoControlModelTypeName.Len() && xFactory.is() )
+ uno::Reference< uno::XComponentContext > xContext( ::comphelper::getProcessComponentContext() );
+ if (aUnoControlModelTypeName.Len() )
{
- xModel = uno::Reference< awt::XControlModel >(xFactory->createInstance(
- aUnoControlModelTypeName), uno::UNO_QUERY);
+ xModel = uno::Reference< awt::XControlModel >(xContext->getServiceManager()->createInstanceWithContext(
+ aUnoControlModelTypeName, xContext), uno::UNO_QUERY);
if (xModel.is())
SetChanged();