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

New commits:
commit 6719a5923116fbfd86c7c50dfe1602cc4bb65713
Author: Andras Timar <[email protected]>
Date:   Tue Jun 9 00:04:53 2015 +0200

    not necessary to open read/write to extract document metadata
    
    Change-Id: Idf1bfbac1adc083f6d697d19ca41110f765955e9

diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx 
b/sfx2/source/doc/SfxDocumentMetaData.cxx
index 0eb060b..98f9f7a 100644
--- a/sfx2/source/doc/SfxDocumentMetaData.cxx
+++ b/sfx2/source/doc/SfxDocumentMetaData.cxx
@@ -2016,6 +2016,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;
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to