SfxMedium: only own format has the signature in a single stream

OOXML has one stream for each signature, so it wants a storage instead.

Change-Id: Iff2ed4b65d8c2023d02578ec4e80c13e36f55390
This commit is contained in:
Miklos Vajna
2016-01-19 17:16:00 +01:00
parent 220b25ba27
commit ac699587dc

View File

@@ -3579,10 +3579,9 @@ bool SfxMedium::SignContents_Impl( bool bScriptingContent, const OUString& aODFV
} }
else else
{ {
uno::Reference< io::XStream > xStream( uno::Reference< io::XStream > xStream;
xMetaInf->openStreamElement( xSigner->getDocumentContentSignatureDefaultStreamName(), if (GetFilter() && GetFilter()->IsOwnFormat())
embed::ElementModes::READWRITE ), xStream.set(xMetaInf->openStreamElement(xSigner->getDocumentContentSignatureDefaultStreamName(), embed::ElementModes::READWRITE), uno::UNO_SET_THROW);
uno::UNO_SET_THROW );
if ( xSigner->signDocumentContent( GetZipStorageToSign_Impl(), xStream ) ) if ( xSigner->signDocumentContent( GetZipStorageToSign_Impl(), xStream ) )
{ {