summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
Diffstat (limited to 'forms')
-rw-r--r--forms/source/xforms/submission.cxx7
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( )