[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - sc/source

Markus Mohrhard markus.mohrhard at googlemail.com
Mon Jul 3 19:09:11 UTC 2017


 sc/source/ui/docshell/docsh4.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 967fd3e7a6e37495be17c2dfa62e05944cfa6af8
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Wed Jun 28 02:15:04 2017 +0200

    handle SID_ENCRYPTIONDATA for shared password protected docs, tdf#56173
    
    Change-Id: Iadfe880b7be3186410a08568844d8812f176005d
    Reviewed-on: https://gerrit.libreoffice.org/39332
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    (cherry picked from commit 669c12d59b6131f44945f166c77ae98df52ebb9e)
    Reviewed-on: https://gerrit.libreoffice.org/39336
    Reviewed-by: Eike Rathke <erack at redhat.com>

diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index 1cd085e0b3aa..bc4a8a8df386 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -2441,6 +2441,13 @@ uno::Reference< frame::XModel > ScDocShell::LoadSharedDocument()
                 aArgs[1].Name = "Password";
                 aArgs[1].Value <<= pPasswordItem->GetValue();
             }
+            const SfxUnoAnyItem* pEncryptionItem = SfxItemSet::GetItem<SfxUnoAnyItem>(GetMedium()->GetItemSet(), SID_ENCRYPTIONDATA, false);
+            if (pEncryptionItem)
+            {
+                aArgs.realloc(aArgs.getLength() + 1);
+                aArgs[aArgs.getLength() - 1].Name = "EncryptionData";
+                aArgs[aArgs.getLength() - 1].Value = pEncryptionItem->GetValue();
+            }
         }
 
         xModel.set(


More information about the Libreoffice-commits mailing list