diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-04-23 06:55:38 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-04-24 12:17:48 +0200 |
commit | 4b520d2ee8732d24d882ac965078f54e5ae5d418 (patch) | |
tree | a06c0768ba7d5d336adc1dd6111b890a912fb7e0 | |
parent | 8a943663db717aaae9fb09dadd31a4cbf593b7bb (diff) |
protect the properties with a mutex
Change-Id: Iaf9752cc3abd7ac1b3b569928368dcb0a4d6a197
-rw-r--r-- | chart2/source/tools/ErrorBar.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chart2/source/tools/ErrorBar.cxx b/chart2/source/tools/ErrorBar.cxx index a2dd95cb8e27..92c3265ded17 100644 --- a/chart2/source/tools/ErrorBar.cxx +++ b/chart2/source/tools/ErrorBar.cxx @@ -26,6 +26,7 @@ #include "CloneHelper.hxx" #include <svl/itemprop.hxx> +#include <vcl/svapp.hxx> #include <com/sun/star/beans/PropertyAttribute.hpp> #include <com/sun/star/chart/ErrorBarStyle.hpp> @@ -143,6 +144,8 @@ void ErrorBar::setPropertyValue( const OUString& rPropName, const uno::Any& rAny throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException) { + SolarMutexGuard aGuard; + if(rPropName == "ErrorBarStyle") rAny >>= meStyle; else if(rPropName == "PositiveError") @@ -210,6 +213,8 @@ OUString getSourceRangeStrFromLabeledSequences( uno::Sequence< uno::Reference< c uno::Any ErrorBar::getPropertyValue(const OUString& rPropName) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) { + SolarMutexGuard aGuard; + uno::Any aRet; if(rPropName == "ErrorBarStyle") aRet <<= meStyle; |