diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-06-27 16:37:06 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-06-28 08:08:46 +0200 |
commit | 84dfff475c1f25319bc22c7b6ad437d5501a7dc4 (patch) | |
tree | 1044970dee5d6580a4f2bee1c5d93bbbf10132ff | |
parent | fef72f9623bac7f9aa50b4f2606e6ec6282cfe1f (diff) |
tdf#108798 Make CanSignWithGPG work with PDF docs
Change-Id: I09aa030bed3d6ce51ef71d8bab905b01fab5b699
Reviewed-on: https://gerrit.libreoffice.org/39309
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rw-r--r-- | xmlsecurity/source/helper/documentsignaturehelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlsecurity/source/helper/documentsignaturehelper.cxx b/xmlsecurity/source/helper/documentsignaturehelper.cxx index 161f36e4ed66..fadf1a6309b2 100644 --- a/xmlsecurity/source/helper/documentsignaturehelper.cxx +++ b/xmlsecurity/source/helper/documentsignaturehelper.cxx @@ -410,7 +410,7 @@ bool DocumentSignatureHelper::CanSignWithGPG( { uno::Reference<container::XNameAccess> xNameAccess(rxStore, uno::UNO_QUERY); if (!xNameAccess.is()) - throw RuntimeException(); + return false; if (xNameAccess->hasByName("META-INF")) // ODF { |