myEditCurrentArgument->setText( "" );
QString aString = "";
- int nbSel = GEOMBase::GetNameOfSelectedIObjects( selectedIO(), aString, true );
+ LightApp_SelectionMgr* aSelMgr = myGeomGUI->getApp()->selectionMgr();
+ SALOME_ListIO aSelList;
+ aSelMgr->selectedObjects(aSelList);
+
+ int nbSel = GEOMBase::GetNameOfSelectedIObjects(aSelList, aString, true);
if ( nbSel < 1 ) {
if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) {
// One and only one plane can be selected
- if ( getConstructorId() == 1 &&
+ if ( getConstructorId() == 1 &&
myEditCurrentArgument == GroupPoints->LineEdit2 &&
nbSel != 1 ) {
myListTools.length( 0 );
}
if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) {
- GEOMBase::ConvertListOfIOInListOfGO( selectedIO(), myListShapes, true );
+ GEOMBase::ConvertListOfIOInListOfGO(aSelList, myListShapes, true);
myListMaterials.length( 0 );
if ( !myListShapes.length() )
return;
}
else if ( myEditCurrentArgument == GroupPoints->LineEdit2 ) {
- GEOMBase::ConvertListOfIOInListOfGO( selectedIO(), myListTools, true );
+ GEOMBase::ConvertListOfIOInListOfGO(aSelList, myListTools, true);
if ( !myListTools.length() )
return;
}
GroupPoints->LineEdit2->setEnabled(false);
}
else if ( send == GroupPoints->PushButton2 ) {
+ myGeomGUI->getApp()->selectionMgr()->clearSelected(); //clear prewious selection
myEditCurrentArgument = GroupPoints->LineEdit2;
GroupPoints->PushButton1->setDown(false);
GroupPoints->LineEdit1->setEnabled(false);