summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2015-06-09 00:04:53 +0200
committerAndras Timar <andras.timar@collabora.com>2015-06-09 06:15:36 +0000
commit30c4467d6afe9bb0c720860613df934ed89a400b (patch)
tree5b0a150a8e8ea7ef07e5a0005520faaff5ca8a79 /sfx2
parent1276bf033b11a71961cd3454bb44bf08f997ca62 (diff)
not necessary to open read/write to extract document metadata
Change-Id: Idf1bfbac1adc083f6d697d19ca41110f765955e9 Reviewed-on: https://gerrit.libreoffice.org/16171 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/SfxDocumentMetaData.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx
index d7118a7f1118..54b4a905f88a 100644
--- a/sfx2/source/doc/SfxDocumentMetaData.cxx
+++ b/sfx2/source/doc/SfxDocumentMetaData.cxx
@@ -2012,6 +2012,7 @@ SfxDocumentMetaData::loadFromMedium(const OUString & URL,
// if we have an URL parameter, it replaces the one in the media descriptor
if (!URL.isEmpty()) {
md[ utl::MediaDescriptor::PROP_URL() ] <<= URL;
+ md[ utl::MediaDescriptor::PROP_READONLY() ] <<= true;
}
if (md.addInputStream()) {
md[ utl::MediaDescriptor::PROP_INPUTSTREAM() ] >>= xIn;