diff --git a/ve/ve0100.cpp b/ve/ve0100.cpp index ebd833bd7..33a1dbbc8 100755 --- a/ve/ve0100.cpp +++ b/ve/ve0100.cpp @@ -450,12 +450,12 @@ int TMotore_application::write( const TMask& m ) // C 90 break; } } - do_elab(d); const int err = TRelation_application::write(m); if (err == NOERR) { + do_elab(d); mask.update_father_rows(); mask.save_father_rows(); @@ -479,10 +479,10 @@ int TMotore_application::rewrite( const TMask& m ) // C 90 if (d.bloccato()) return NOERR; d = ((TDocumento_mask&)m).doc(); // Trasferisce il documento da maschera a record - do_elab(d); const int err = TRelation_application::rewrite(m); if (err == NOERR) { + do_elab(d); mask.update_father_rows(); mask.save_father_rows(); }