summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-07-23 14:55:38 +0200
committerNoel Grandin <noel@peralex.com>2013-07-23 14:58:29 +0200
commitd8fa15f0ea3bbf38f5142f83121b7c72c483c7f5 (patch)
tree95b5dee53890aa6b03c538c942b9ef1e61d4bc9a /sw/source
parent312f3aac56b410021bdf3db70d36b7fe88b3744f (diff)
fdo#67213 - crash on opening AutoText dialog (Ctrl+F3)
I created this bug with commit 32eaa77db33b3b1f5793e92167b9f8c2708ea543 "fdo#46808, Convert frame::FrameControl service to new style" If we cannot create a css::frame::FrameControl service, just continue. Change-Id: Iffd6952fd5153af5a1ab72af2bc55864816a750d
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/ui/utlui/unotools.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/sw/source/ui/utlui/unotools.cxx b/sw/source/ui/utlui/unotools.cxx
index 62fadccd1454..64d97c95fcc5 100644
--- a/sw/source/ui/utlui/unotools.cxx
+++ b/sw/source/ui/utlui/unotools.cxx
@@ -112,7 +112,14 @@ void SwOneExampleFrame::CreateControl()
uno::Reference< lang::XMultiServiceFactory >
xMgr = comphelper::getProcessServiceFactory();
uno::Reference< uno::XComponentContext > xContext = comphelper::getProcessComponentContext();
- m_xFrameControl = frame::FrameControl::create(xContext);
+ try
+ {
+ m_xFrameControl = frame::FrameControl::create(xContext);
+ }
+ catch ( css::uno::DeploymentException& )
+ {
+ return;
+ }
uno::Reference< awt::XWindowPeer > xParent( aTopWindow.GetComponentInterface() );