diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-10-10 00:11:31 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-10-10 00:11:31 +0200 |
commit | aa3b39b0bd65158ec3156e0a1391973507ebd19e (patch) | |
tree | 883761fd48df4ab76920104b6011a22a300810f7 /svtools/source | |
parent | warning C4805 unsafe mix of type sal_Bool and type bool (diff) | |
download | core-aa3b39b0bd65158ec3156e0a1391973507ebd19e.tar.gz core-aa3b39b0bd65158ec3156e0a1391973507ebd19e.zip |
unographic::GraphicProvider: lock SolarMutex as needed
... thanks to bug report from David O.
Change-Id: I7a72c36848a110fe7487c85c7720990d3c1e14de
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/graphic/provider.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/svtools/source/graphic/provider.cxx b/svtools/source/graphic/provider.cxx index 9a5fa4e8576f..16594c1f4706 100644 --- a/svtools/source/graphic/provider.cxx +++ b/svtools/source/graphic/provider.cxx @@ -380,6 +380,8 @@ uno::Reference< beans::XPropertySet > SAL_CALL GraphicProvider::queryGraphicDesc } } + SolarMutexGuard g; + if( xIStm.is() ) { GraphicDescriptor* pDescriptor = new GraphicDescriptor; @@ -483,6 +485,8 @@ uno::Reference< ::graphic::XGraphic > SAL_CALL GraphicProvider::queryGraphic( co } } + SolarMutexGuard g; + if( xIStm.is() ) { pIStm = ::utl::UcbStreamHelper::CreateStream( xIStm ); @@ -769,6 +773,8 @@ void ImplApplyFilterData( ::Graphic& rGraphic, uno::Sequence< beans::PropertyVal void SAL_CALL GraphicProvider::storeGraphic( const uno::Reference< ::graphic::XGraphic >& rxGraphic, const uno::Sequence< beans::PropertyValue >& rMediaProperties ) throw ( io::IOException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException) { + SolarMutexGuard g; + SvStream* pOStm = NULL; OUString aPath; sal_Int32 i; |