summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-10-10 00:11:31 +0200
committerMichael Stahl <mstahl@redhat.com>2013-10-10 00:11:31 +0200
commitaa3b39b0bd65158ec3156e0a1391973507ebd19e (patch)
tree883761fd48df4ab76920104b6011a22a300810f7 /svtools
parent566bdd3a4dfc69431460ae04700d4b2aa9910eb6 (diff)
unographic::GraphicProvider: lock SolarMutex as needed
... thanks to bug report from David O. Change-Id: I7a72c36848a110fe7487c85c7720990d3c1e14de
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/graphic/provider.cxx6
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;