From 4b520d2ee8732d24d882ac965078f54e5ae5d418 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Tue, 23 Apr 2013 06:55:38 +0200 Subject: protect the properties with a mutex Change-Id: Iaf9752cc3abd7ac1b3b569928368dcb0a4d6a197 --- chart2/source/tools/ErrorBar.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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 +#include #include #include @@ -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; -- cgit