fix SetSourceMesh(): set mesh before calling NotifySubMeshesHypothesisModification()
// File : StdMeshers_ProjectionSource1D.cxx
// Author : Edward AGAPOV
// Module : SMESH
-// $Header$
//
#include "StdMeshers_ProjectionSource1D.hxx"
void StdMeshers_ProjectionSource1D::SetSourceMesh(SMESH_Mesh* mesh)
{
- if ( _sourceMesh != mesh )
+ if ( _sourceMesh != mesh ) {
+ _sourceMesh = mesh;
NotifySubMeshesHypothesisModification();
- _sourceMesh = mesh;
+ }
}
//=============================================================================
_targetVertex = TopoDS::Vertex( s3 );
_sourceMesh = mesh;
}
-
// File : StdMeshers_ProjectionSource2D.cxx
// Author : Edward AGAPOV
// Module : SMESH
-// $Header$
-//
+
#include "StdMeshers_ProjectionSource2D.hxx"
#include "SMESH_Mesh.hxx"
void StdMeshers_ProjectionSource2D::SetSourceMesh(SMESH_Mesh* mesh)
{
- if ( _sourceMesh != mesh )
+ if ( _sourceMesh != mesh ) {
+ _sourceMesh = mesh;
NotifySubMeshesHypothesisModification();
- _sourceMesh = mesh;
+ }
}
//=============================================================================
// File : StdMeshers_ProjectionSource3D.cxx
// Author : Edward AGAPOV
// Module : SMESH
-// $Header$
-//
+
#include "StdMeshers_ProjectionSource3D.hxx"
#include "utilities.h"
void StdMeshers_ProjectionSource3D::SetSourceMesh(SMESH_Mesh* mesh)
{
- if ( _sourceMesh != mesh )
+ if ( _sourceMesh != mesh ) {
+ _sourceMesh = mesh;
NotifySubMeshesHypothesisModification();
- _sourceMesh = mesh;
+ }
}
//=============================================================================