To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=105239


User mba changed the following:

                What    |Old value                 |New value
================================================================================
             Assigned to|mba                       |cd
--------------------------------------------------------------------------------




------- Additional comments from [email protected] Thu Jun  3 09:53:01 +0000 
2010 -------
please review the fix:

diff -r 9f08556668b1 sfx2/source/appl/imestatuswindow.cxx
--- a/sfx2/source/appl/imestatuswindow.cxx      Mon May 31 15:03:42 2010 +0200
+++ b/sfx2/source/appl/imestatuswindow.cxx      Thu Jun 03 11:52:00 2010 +0200
@@ -57,10 +57,8 @@
 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 @@
     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()
diff -r 9f08556668b1 sfx2/source/appl/imestatuswindow.hxx
--- a/sfx2/source/appl/imestatuswindow.hxx      Mon May 31 15:03:42 2010 +0200
+++ b/sfx2/source/appl/imestatuswindow.hxx      Thu Jun 03 11:52:00 2010 +0200
@@ -37,7 +37,6 @@
     namespace beans { class XPropertySet; }
     namespace lang { class XMultiServiceFactory; }
 } } }
-class SfxApplication;
 
 namespace sfx2 { namespace appl {
 
@@ -56,10 +55,7 @@
 class ImeStatusWindow: private ImeStatusWindow_Impl
 {
 public:
-    ImeStatusWindow(SfxApplication & rApplication,
-                    com::sun::star::uno::Reference<
-                            com::sun::star::lang::XMultiServiceFactory > const 
&
-                        rServiceFactory);
+    ImeStatusWindow( com::sun::star::uno::Reference<
com::sun::star::lang::XMultiServiceFactory > const& rServiceFactory );
 
     /** Set up VCL according to the configuration.
 
@@ -115,7 +111,6 @@
     com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet >
     getConfig();
 
-    SfxApplication & m_rApplication;
     com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory 
>
         m_xServiceFactory;
 


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to