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-08-06 12:22:38 +0200
commit8bb59c850e0d5966b42a3bb3a1b2362d5e9e7c28 (patch)
tree2178dc0f6b38f49400519d4e4d4549bd0418f8f5 /sfx2
parent8c1b8a5c6ffcd4015d3f25dbda58f3fd22d61ad6 (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> (cherry picked from commit 30c4467d6afe9bb0c720860613df934ed89a400b)
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;