[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-4.4' - sfx2/source
Andras Timar
andras.timar at collabora.com
Mon Jun 8 15:20:57 PDT 2015
sfx2/source/doc/SfxDocumentMetaData.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit c34137688bd87b7bc5fa5dcfe6ad2c055b098fd7
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
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;
More information about the Libreoffice-commits
mailing list