mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
0020310: EDF 997 SMESH : Tell the mesh to pass through different points
Edit sub mesh with hypothesis, but without algos. It is necessary tocheck is there are any comparing of strings as "char* == char*" but HOW?
This commit is contained in:
parent
cf2a8cec1c
commit
0f691b4cc1
@ -1332,7 +1332,7 @@ void SMESHGUI_MeshOp::onAlgoSelected( const int theIndex,
|
||||
CORBA::String_var curHypType = curHyp->GetName();
|
||||
if ( !algoDeselectedByUser &&
|
||||
myObjHyps[ dim ][ type ].count() > 0 &&
|
||||
curHypType == myObjHyps[ dim ][ type ].first().first->GetName())
|
||||
!strcmp( curHypType, myObjHyps[ dim ][ type ].first().first->GetName()) )
|
||||
{
|
||||
HypothesisData* hypData = SMESH::GetHypothesisData( curHyp->GetName() );
|
||||
for (int i = 0; i < myAvailableHypData[ dim ][ Algo ].count(); ++i) {
|
||||
@ -1761,7 +1761,7 @@ SMESH::SMESH_Hypothesis_var SMESHGUI_MeshOp::getAlgo( const int theDim )
|
||||
{
|
||||
SMESH::SMESH_Hypothesis_var aHypVar = (*anIter).first;
|
||||
CORBA::String_var aName = aHypVar->GetName();
|
||||
if ( !aHypVar->_is_nil() && aHypName == aName )
|
||||
if ( !aHypVar->_is_nil() && !strcmp(aHypName.toLatin1().data(), aName) )
|
||||
{
|
||||
anAlgoVar = aHypVar;
|
||||
break;
|
||||
@ -1802,7 +1802,7 @@ SMESH::SMESH_Hypothesis_var SMESHGUI_MeshOp::getAlgo( const int theDim )
|
||||
{
|
||||
SMESH::SMESH_Hypothesis_var aHypVar = (*anIter).first;
|
||||
CORBA::String_var aName = aHypVar->GetName();
|
||||
if ( !aHypVar->_is_nil() && aHypName == aName )
|
||||
if ( !aHypVar->_is_nil() && !strcmp(aHypName.toLatin1().data(), aName) )
|
||||
{
|
||||
anAlgoVar = aHypVar;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user