Salome HOME
0020044: EDF 866 GEOM: Extrusion along a path : impossible to select a Wire
[modules/geom.git] / src / BuildGUI / BuildGUI_FaceDlg.cxx
index 37590240482a7fc6f7f2808fac9f50c7bc5523e2..a90e21c99aeb17ae604084503190cda21d8afff8 100644 (file)
@@ -72,7 +72,7 @@ BuildGUI_FaceDlg::BuildGUI_FaceDlg( GeometryGUI* theGeometryGUI, QWidget* parent
   layout->addWidget( GroupWire );
   /***************************************************************/
 
-  setHelpFileName( "face.htm" );
+  setHelpFileName("create_face_page.html");
 
   /* Initialisations */
   Init();
@@ -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 )