diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-01-27 21:33:31 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-01-29 21:48:12 +0100 |
commit | a4faad707c7fb27884fff5f20e5797b160d4f320 (patch) | |
tree | af7c8a8c7bc6882c2b5655fdae14009c28c700bf /basic/source/classes | |
parent | 74df327e1ef4edf4ca07d04ae72ee052d824564f (diff) |
tdf#76174: basic: lock SolarMutex in BasicScriptListener_Impl
... before calling into BASIC.
Change-Id: I51a59fe5ca9b15ff7ec509c052964523d87a9790
Diffstat (limited to 'basic/source/classes')
-rw-r--r-- | basic/source/classes/eventatt.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/basic/source/classes/eventatt.cxx b/basic/source/classes/eventatt.cxx index 943d96d65aa6..e67f5b3c7775 100644 --- a/basic/source/classes/eventatt.cxx +++ b/basic/source/classes/eventatt.cxx @@ -48,7 +48,7 @@ #include <basic/basicmanagerrepository.hxx> #include <basic/basmgr.hxx> - +#include <vcl/svapp.hxx> #include <xmlscript/xmldlg_imexp.hxx> #include <sbunoobj.hxx> #include <basic/sbstar.hxx> @@ -161,12 +161,16 @@ public: // Methods XAllListener void BasicScriptListener_Impl::firing( const ScriptEvent& aScriptEvent ) throw ( RuntimeException, std::exception ) { + SolarMutexGuard g; + firing_impl( aScriptEvent, NULL ); } Any BasicScriptListener_Impl::approveFiring( const ScriptEvent& aScriptEvent ) throw ( InvocationTargetException, RuntimeException, std::exception ) { + SolarMutexGuard g; + Any aRetAny; firing_impl( aScriptEvent, &aRetAny ); return aRetAny; |