]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020279: [CEA 334] control the "random" use when using mesh algorithms
authoreap <eap@opencascade.com>
Tue, 19 May 2009 15:35:17 +0000 (15:35 +0000)
committereap <eap@opencascade.com>
Tue, 19 May 2009 15:35:17 +0000 (15:35 +0000)
   fix SetSourceMesh(): set mesh before calling NotifySubMeshesHypothesisModification()

src/StdMeshers/StdMeshers_ProjectionSource1D.cxx
src/StdMeshers/StdMeshers_ProjectionSource2D.cxx
src/StdMeshers/StdMeshers_ProjectionSource3D.cxx

index 8a2052071360bd2af2be3ec034401f028f4ba937..9be958436288af8d943da96f3a0d3f91027fe748 100644 (file)
@@ -126,9 +126,10 @@ void StdMeshers_ProjectionSource1D::SetVertexAssociation(const TopoDS_Shape& sou
 
 void StdMeshers_ProjectionSource1D::SetSourceMesh(SMESH_Mesh* mesh)
 {
-  if ( _sourceMesh != mesh )
+  if ( _sourceMesh != mesh ) {
+    _sourceMesh = mesh;
     NotifySubMeshesHypothesisModification();
-  _sourceMesh = mesh;
+  }
 }
 
 //=============================================================================
index a1393fc79e8007923b98b2fc696dba6dc206bf97..be0d809eb9773caeac5aabaee98d1f54cb38f24d 100644 (file)
@@ -136,9 +136,10 @@ void StdMeshers_ProjectionSource2D::SetVertexAssociation(const TopoDS_Shape& sou
 
 void StdMeshers_ProjectionSource2D::SetSourceMesh(SMESH_Mesh* mesh)
 {
-  if ( _sourceMesh != mesh )
+  if ( _sourceMesh != mesh ) {
+    _sourceMesh = mesh;
     NotifySubMeshesHypothesisModification();
-  _sourceMesh = mesh;
+  }
 }
 
 //=============================================================================
index b77808f3606941ee6bfb2d483150822667035f8a..4a8aa1086725c5fb3420541cfcab7f349c866188 100644 (file)
@@ -135,9 +135,10 @@ void StdMeshers_ProjectionSource3D::SetVertexAssociation(const TopoDS_Shape& sou
 
 void StdMeshers_ProjectionSource3D::SetSourceMesh(SMESH_Mesh* mesh)
 {
-  if ( _sourceMesh != mesh )
+  if ( _sourceMesh != mesh ) {
+    _sourceMesh = mesh;
     NotifySubMeshesHypothesisModification();
-  _sourceMesh = mesh;
+  }
 }
 
 //=============================================================================