Salome HOME
0020044: EDF 866 GEOM: Extrusion along a path : impossible to select a Wire
[modules/geom.git] / src / BuildGUI / BuildGUI_FaceDlg.cxx
index 92205b8c12df781630c6f6290b43bd014a218e13..a90e21c99aeb17ae604084503190cda21d8afff8 100644 (file)
@@ -152,14 +152,18 @@ void BuildGUI_FaceDlg::SelectionIntoArgument()
   myEditCurrentArgument->setText( "" );
   QString aName;
   
-  int aNbSel = GEOMBase::GetNameOfSelectedIObjects( selectedIO(), aName );
+  LightApp_SelectionMgr* aSelMgr = myGeomGUI->getApp()->selectionMgr();
+  SALOME_ListIO aSelList;
+  aSelMgr->selectedObjects(aSelList);
+
+  int aNbSel = GEOMBase::GetNameOfSelectedIObjects(aSelList, aName);
   
   if ( aNbSel < 1) {
     myWires.length(0);
     return;
   }
   
-  GEOMBase::ConvertListOfIOInListOfGO( selectedIO(), myWires );
+  GEOMBase::ConvertListOfIOInListOfGO(aSelList, myWires);
   if ( !myWires.length() )
     return;
   if ( aNbSel != 1 )