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