mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
bos #30314 EDF 25565 - Strange behavior on a specific case
Avoid SIGSEGV when returning NULL instead of an empty list
This commit is contained in:
parent
9d7121c884
commit
678de41423
@ -3664,7 +3664,7 @@ SMESH_MeshEditor_i::TranslateMakeGroups(const SMESH::smIdType_array& theIDsOfEle
|
|||||||
<< theIDsOfElements << ", "
|
<< theIDsOfElements << ", "
|
||||||
<< theVector << " )";
|
<< theVector << " )";
|
||||||
}
|
}
|
||||||
return aGroups;
|
return aGroups ? aGroups : new SMESH::ListOfGroups();
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
@ -3689,7 +3689,7 @@ SMESH_MeshEditor_i::TranslateObjectMakeGroups(SMESH::SMESH_IDSource_ptr theObjec
|
|||||||
<< theObject << ", "
|
<< theObject << ", "
|
||||||
<< theVector << " )";
|
<< theVector << " )";
|
||||||
}
|
}
|
||||||
return aGroups;
|
return aGroups ? aGroups : new SMESH::ListOfGroups();
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
@ -3914,7 +3914,7 @@ SMESH_MeshEditor_i::RotateMakeGroups(const SMESH::smIdType_array& theIDsOfElemen
|
|||||||
<< theAxis << ", "
|
<< theAxis << ", "
|
||||||
<< TVar( theAngle ) << " )";
|
<< TVar( theAngle ) << " )";
|
||||||
}
|
}
|
||||||
return aGroups;
|
return aGroups ? aGroups : new SMESH::ListOfGroups();
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
@ -3941,7 +3941,7 @@ SMESH_MeshEditor_i::RotateObjectMakeGroups(SMESH::SMESH_IDSource_ptr theObject,
|
|||||||
<< theAxis << ", "
|
<< theAxis << ", "
|
||||||
<< TVar( theAngle ) << " )";
|
<< TVar( theAngle ) << " )";
|
||||||
}
|
}
|
||||||
return aGroups;
|
return aGroups ? aGroups : new SMESH::ListOfGroups();
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user