diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-21 11:53:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-22 08:29:29 +0200 |
commit | 4af6c0948be47d7816eb1b6f2137b70aba639f0d (patch) | |
tree | 3965a1709f531229a6faaeef2e9d4026a30332b8 /forms | |
parent | 7b45044fd14661202c658923842dd629cf52961c (diff) |
loplugin:flatten in filter..i18npool
Change-Id: I9024b8b614a4de83a4d927e1918f6d4904a7fccb
Reviewed-on: https://gerrit.libreoffice.org/42592
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/xforms/submission.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/forms/source/xforms/submission.cxx b/forms/source/xforms/submission.cxx index a0cd6e9fcdba..3757378c663d 100644 --- a/forms/source/xforms/submission.cxx +++ b/forms/source/xforms/submission.cxx @@ -477,16 +477,13 @@ void SAL_CALL Submission::submitWithInteraction( *this, makeAny( e ) ); } - if( bResult ) - { - mxModel->rebuild(); - } - else + if( !bResult ) { // other failure: throw wrapped target exception, too. throw WrappedTargetException( lcl_message( sID, OUString() ), *this, Any() ); } + mxModel->rebuild(); } void SAL_CALL Submission::submit( ) |