Bugzilla – Attachment 66880 Details for
Bug 47368
Many crashes when accessibility enabled on MacOS X
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Suggested patch
0001-fdo-47368-Remove-event-listener-also-in-Invalidate.patch (text/plain), 1.90 KB, created by
Don't use this account, use tml@iki.fi
on 2012-09-09 11:59:30 UTC
(
hide
)
Description:
Suggested patch
Filename:
MIME Type:
Creator:
Don't use this account, use tml@iki.fi
Created:
2012-09-09 11:59:30 UTC
Size:
1.90 KB
patch
obsolete
>From 49384c468fe4cf1b8ef0eb916252b1da8a1010dc Mon Sep 17 00:00:00 2001 >From: Tor Lillqvist <tml@iki.fi> >Date: Sun, 9 Sep 2012 14:38:51 +0300 >Subject: [PATCH] fdo#47368: Remove event listener also in Invalidate() > >Change-Id: Ifa3d7ff400137b4560fa0ff890cd211147c5c234 >--- > .../accessibility/AccessibleFrameSelector.cxx | 8 ++++++++ > svx/source/inc/AccessibleFrameSelector.hxx | 1 + > 2 files changed, 9 insertions(+) > >diff --git a/svx/source/accessibility/AccessibleFrameSelector.cxx b/svx/source/accessibility/AccessibleFrameSelector.cxx >index 925be94..1def70a 100644 >--- a/svx/source/accessibility/AccessibleFrameSelector.cxx >+++ b/svx/source/accessibility/AccessibleFrameSelector.cxx >@@ -101,6 +101,13 @@ AccFrameSelector::AccFrameSelector( FrameSelector& rFrameSel, FrameBorderType eB > > AccFrameSelector::~AccFrameSelector() > { >+ RemoveFrameSelEventListener(); >+} >+ >+// ---------------------------------------------------------------------------- >+ >+void AccFrameSelector::RemoveFrameSelEventListener() >+{ > if ( mpFrameSel ) > { > mpFrameSel->RemoveEventListener( LINK( this, AccFrameSelector, WindowEventListener ) ); >@@ -709,6 +716,7 @@ void AccFrameSelector::NotifyAccessibleEvent( const sal_Int16 _nEventId, > > void AccFrameSelector::Invalidate() > { >+ RemoveFrameSelEventListener(); > mpFrameSel = 0; > EventObject aEvent; > Reference < XAccessibleContext > xThis( this ); >diff --git a/svx/source/inc/AccessibleFrameSelector.hxx b/svx/source/inc/AccessibleFrameSelector.hxx >index 3204b62..6a55c00 100644 >--- a/svx/source/inc/AccessibleFrameSelector.hxx >+++ b/svx/source/inc/AccessibleFrameSelector.hxx >@@ -127,6 +127,7 @@ protected: > > private: > void IsValid() throw (::com::sun::star::uno::RuntimeException); >+ void RemoveFrameSelEventListener(); > > FrameSelector* mpFrameSel; > ::osl::Mutex maFocusMutex; >-- >1.7.9.6 (Apple Git-31.1) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 47368
:
58540
|
64540
|
64623
| 66880 |
66904
|
66907
|
67635