[Libreoffice-commits] core.git: sfx2/source

Andras Timar andras.timar at collabora.com
Mon Jun 8 23:16:01 PDT 2015


 sfx2/source/doc/SfxDocumentMetaData.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 30c4467d6afe9bb0c720860613df934ed89a400b
Author: Andras Timar <andras.timar at collabora.com>
Date:   Tue Jun 9 00:04:53 2015 +0200

    not necessary to open read/write to extract document metadata
    
    Change-Id: Idf1bfbac1adc083f6d697d19ca41110f765955e9
    Reviewed-on: https://gerrit.libreoffice.org/16171
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx
index d7118a7..54b4a90 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;


More information about the Libreoffice-commits mailing list