0020693: EDF 1288 SMESH: Problem to recompute a mesh with a sub-mesh and a conversion linear-quadratic

+    if ( myMesh->HasModificationsToDiscard() && // issue 0020693
+         SUIT_MessageBox::question( desktop(), tr( "SMESH_WARNING" ),
+                                    tr( "FULL_RECOMPUTE_QUESTION" ),
+                                    tr( "SMESH_BUT_YES" ), tr( "SMESH_BUT_NO" ), 1, 0 ) == 0 )
+      myMesh->Clear();
This commit is contained in:
eap 2010-05-13 06:20:35 +00:00
parent a5103fc7f7
commit 38824d786e

View File

@ -698,6 +698,11 @@ void SMESHGUI_BaseComputeOp::computeMesh()
if ( errors->length() > 0 ) { if ( errors->length() > 0 ) {
aHypErrors = SMESH::GetMessageOnAlgoStateErrors( errors.in() ); aHypErrors = SMESH::GetMessageOnAlgoStateErrors( errors.in() );
} }
if ( myMesh->HasModificationsToDiscard() && // issue 0020693
SUIT_MessageBox::question( desktop(), tr( "SMESH_WARNING" ),
tr( "FULL_RECOMPUTE_QUESTION" ),
tr( "SMESH_BUT_YES" ), tr( "SMESH_BUT_NO" ), 1, 0 ) == 0 )
myMesh->Clear();
SUIT_OverrideCursor aWaitCursor; SUIT_OverrideCursor aWaitCursor;
try { try {
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100 #if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100