diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-07-14 10:43:16 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-07-14 10:43:16 +0000 |
commit | 9fab82a57d9b1a29009a90eb0da4f994cf96cdc2 (patch) | |
tree | 28728f9b4875c10eedcbba44761d3e12a97e9458 /svx/source/xml | |
parent | a5e5a06b67662a89d3c0b38a4c622c911c362734 (diff) |
INTEGRATION: CWS dvoqbfix4 (1.22.282); FILE MERGED
2005/06/09 16:11:59 dvo 1.22.282.1: #i48711# open graphics storage in READWRITE mode only if writing is requested
Diffstat (limited to 'svx/source/xml')
-rw-r--r-- | svx/source/xml/xmlgrhlp.cxx | 10 |
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& ) { |