Salome HOME
23586: [EDF] HYDRO: Copy mesh to new geometry
authoreap <eap@opencascade.com>
Tue, 18 Sep 2018 14:38:32 +0000 (17:38 +0300)
committereap <eap@opencascade.com>
Tue, 18 Sep 2018 14:38:32 +0000 (17:38 +0300)
 fix highlighting at mesh computing

src/SMESH_I/SMESH_Gen_i.cxx

index cd9c86098033368bdc5ae2f1c797362f91ad1fed..c383a29fc6b0e6eb90f2d4c131d174d19652d798 100644 (file)
@@ -1965,7 +1965,8 @@ CORBA::Boolean SMESH_Gen_i::Compute( SMESH::SMESH_Mesh_ptr theMesh,
       meshServant->CreateGroupServants(); // algos can create groups (issue 0020918)
       myLocMesh.GetMeshDS()->Modified();
       UpdateIcons( theMesh );
       meshServant->CreateGroupServants(); // algos can create groups (issue 0020918)
       myLocMesh.GetMeshDS()->Modified();
       UpdateIcons( theMesh );
-      HighLightInvalid( theMesh, /*isInvalid=*/!ok );
+      if ( ok )
+        HighLightInvalid( theMesh, /*isInvalid=*/false );
       return ok;
     }
   }
       return ok;
     }
   }