diff options
author | Mathias Bauer <mba@openoffice.org> | 2010-05-12 08:38:13 +0200 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2010-05-12 08:38:13 +0200 |
commit | cd50d383f645aa1d188331039d334faebfa1add0 (patch) | |
tree | 3d4860ea6c736e625ffbb587d8aaf18c4af01d7c /sfx2/source/appl/imestatuswindow.cxx | |
parent | CWS mba33issues01: #i111452#: allow to call getController() at disposed frame... (diff) | |
download | core-cd50d383f645aa1d188331039d334faebfa1add0.tar.gz core-cd50d383f645aa1d188331039d334faebfa1add0.zip |
CWS mba33issues01: #i105239#: safe way to access SfxApplication in IMEStatusWindow
Diffstat (limited to 'sfx2/source/appl/imestatuswindow.cxx')
-rw-r--r-- | sfx2/source/appl/imestatuswindow.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/appl/imestatuswindow.cxx b/sfx2/source/appl/imestatuswindow.cxx index 3cdc3064fb81..07eb47bd92ad 100644 --- a/sfx2/source/appl/imestatuswindow.cxx +++ b/sfx2/source/appl/imestatuswindow.cxx @@ -57,10 +57,8 @@ namespace css = com::sun::star; using sfx2::appl::ImeStatusWindow; ImeStatusWindow::ImeStatusWindow( - SfxApplication & rApplication, css::uno::Reference< css::lang::XMultiServiceFactory > const & rServiceFactory): - m_rApplication(rApplication), m_xServiceFactory(rServiceFactory), m_bDisposed(false) {} @@ -161,7 +159,9 @@ ImeStatusWindow::propertyChange(css::beans::PropertyChangeEvent const & ) throw (css::uno::RuntimeException) { vos::OGuard aGuard(Application::GetSolarMutex()); - m_rApplication.Invalidate(SID_SHOW_IME_STATUS_WINDOW); + SfxApplication* pApp = SfxApplication::Get(); + if (pApp) + pApp->Invalidate(SID_SHOW_IME_STATUS_WINDOW); } css::uno::Reference< css::beans::XPropertySet > ImeStatusWindow::getConfig() |