diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-03-07 12:09:44 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-03-07 15:00:14 +0100 |
commit | 1a04b1e4f2086bfdeaba04d7b67e8b8e21e5037f (patch) | |
tree | b559e532076d4057cbc7296db264fcae6e707bbc /xmlsecurity/source | |
parent | 7d7cd95840bd3dec2e1e7e8e5f99c69673767215 (diff) |
xmlsecurity OOXML export: remove signature content types when removing ...
... signatures.
ExportSignatureContentTypes() was already a "remove all, and then re-add
necessary entries" operation, so just make sure we still call it for
zero signatures and it'll do the right thing.
Change-Id: If9182b39ac6d8f2cf66f33a02d9ddcab170ba5ea
Diffstat (limited to 'xmlsecurity/source')
-rw-r--r-- | xmlsecurity/source/helper/documentsignaturemanager.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xmlsecurity/source/helper/documentsignaturemanager.cxx b/xmlsecurity/source/helper/documentsignaturemanager.cxx index 505554e89e1f..47d416ffa8b5 100644 --- a/xmlsecurity/source/helper/documentsignaturemanager.cxx +++ b/xmlsecurity/source/helper/documentsignaturemanager.cxx @@ -374,11 +374,9 @@ void DocumentSignatureManager::write() { // OOXML size_t nSignatureCount = maCurrentSignatureInformations.size(); + maSignatureHelper.ExportSignatureContentTypes(mxStore, nSignatureCount); if (nSignatureCount > 0) - { - maSignatureHelper.ExportSignatureContentTypes(mxStore, nSignatureCount); maSignatureHelper.ExportSignatureRelations(aStreamHelper.xSignatureStorage, nSignatureCount); - } else { // Removing all signatures: then need to remove the signature relation as well. |