summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svx/source/xml/xmlgrhlp.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx
index 369bc0113173..e2feba3133e2 100644
--- a/svx/source/xml/xmlgrhlp.cxx
+++ b/svx/source/xml/xmlgrhlp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmlgrhlp.cxx,v $
*
- * $Revision: 1.22 $
+ * $Revision: 1.23 $
*
- * last change: $Author: rt $
+ * last change: $Author: kz $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -495,7 +495,11 @@ uno::Reference < embed::XStorage > SvXMLGraphicHelper::ImplGetGraphicStorage( co
try
{
- mxGraphicStorage = mxRootStorage->openStorageElement( maCurStorageName = rStorageName, embed::ElementModes::READWRITE );
+ mxGraphicStorage = mxRootStorage->openStorageElement(
+ maCurStorageName = rStorageName,
+ ( GRAPHICHELPER_MODE_WRITE == meCreateMode )
+ ? embed::ElementModes::READWRITE
+ : embed::ElementModes::READ );
}
catch ( uno::Exception& )
{