Code refactoring

This commit is contained in:
vsr 2010-12-29 13:17:10 +00:00
parent 301af5256a
commit e74edb9fb4

View File

@ -1187,11 +1187,10 @@ void SMESHGUI_GroupDlg::onObjectSelectionChanged()
SALOME_ListIteratorOfListIO anIt (aList); SALOME_ListIteratorOfListIO anIt (aList);
for (; anIt.More(); anIt.Next()) for (; anIt.More(); anIt.Next())
{ {
testResult = Standard_False; aGeomGroup = GEOMBase::ConvertIOinGEOMObject(anIt.Value());
aGeomGroup = GEOMBase::ConvertIOinGEOMObject(anIt.Value(), testResult);
// Check if the object is a geometry group // Check if the object is a geometry group
if (!testResult || CORBA::is_nil(aGeomGroup)) if (CORBA::is_nil(aGeomGroup))
continue; continue;
// Check if group constructed on the same shape as a mesh or on its child // Check if group constructed on the same shape as a mesh or on its child