From 30c4467d6afe9bb0c720860613df934ed89a400b Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Tue, 9 Jun 2015 00:04:53 +0200 Subject: not necessary to open read/write to extract document metadata Change-Id: Idf1bfbac1adc083f6d697d19ca41110f765955e9 Reviewed-on: https://gerrit.libreoffice.org/16171 Tested-by: Jenkins Reviewed-by: Andras Timar --- sfx2/source/doc/SfxDocumentMetaData.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sfx2') 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; -- cgit