sfx2/source/doc/docmacromode.cxx | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-)
New commits: commit bfba46d90fc4146ab2a48d155d90dafc8c0a067e Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Wed Nov 8 10:17:42 2023 +0300 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Wed Nov 8 16:23:12 2023 +0100 Simplify a bit Change-Id: I05ef5346f5aab25b208aa058658353cf71e68e87 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159103 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/sfx2/source/doc/docmacromode.cxx b/sfx2/source/doc/docmacromode.cxx index ec23ebe62578..377c14517586 100644 --- a/sfx2/source/doc/docmacromode.cxx +++ b/sfx2/source/doc/docmacromode.cxx @@ -227,23 +227,17 @@ namespace sfx2 return disallowMacroExecution(); } } - - // at this point it is clear that the document is neither in secure location nor signed with trusted certificate - if ( ( nMacroExecutionMode == MacroExecMode::FROM_LIST_AND_SIGNED_NO_WARN ) - || ( nMacroExecutionMode == MacroExecMode::FROM_LIST_AND_SIGNED_WARN ) - ) - { - return disallowMacroExecution(); - } } catch ( const Exception& ) { - if ( ( nMacroExecutionMode == MacroExecMode::FROM_LIST_AND_SIGNED_WARN ) - || ( nMacroExecutionMode == MacroExecMode::FROM_LIST_AND_SIGNED_NO_WARN ) - ) - { - return disallowMacroExecution(); - } + DBG_UNHANDLED_EXCEPTION("sfx.doc"); + } + + // at this point it is clear that the document is neither in secure location nor signed with trusted certificate + if ((nMacroExecutionMode == MacroExecMode::FROM_LIST_AND_SIGNED_NO_WARN) + || (nMacroExecutionMode == MacroExecMode::FROM_LIST_AND_SIGNED_WARN)) + { + return disallowMacroExecution(); } #if defined(_WIN32)