sfx2/source/doc/SfxDocumentMetaData.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit 300e33ce9de8192ff0529673c7efab1890ae3679 Author: Andras Timar <andras.ti...@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 <c...@libreoffice.org> Reviewed-by: Andras Timar <andras.ti...@collabora.com> (cherry picked from commit 30c4467d6afe9bb0c720860613df934ed89a400b) 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits