Salome HOME
RNC: EDF 1542: Take into account orientation in newly created MakeVertexOnCurveByLeng...
[modules/geom.git] / src / BasicGUI / BasicGUI_CurveDlg.cxx
index b1c6f000f0fa6f5a736fa880321867117525df96..2a962c46180c4427c13a3511d6f6c7b382b939b3 100644 (file)
@@ -286,8 +286,6 @@ void BasicGUI_CurveDlg::SelectionIntoArgument()
 {
   myEditCurrentArgument->setText( "" );
 
-  Standard_Boolean aRes = Standard_False;
-
   SalomeApp_Application* app = myGeomGUI->getApp();
   SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>(app->activeStudy());
   _PTR(Study) aDStudy = appStudy->studyDS();
@@ -308,8 +306,8 @@ void BasicGUI_CurveDlg::SelectionIntoArgument()
                            // that will actually be put into myPoints
 
   for (SALOME_ListIteratorOfListIO anIt (selected); anIt.More(); anIt.Next()) {
-    GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(anIt.Value(), aRes);
-    if (!CORBA::is_nil(aSelectedObject) && aRes) {
+    GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( anIt.Value() );
+    if (!CORBA::is_nil(aSelectedObject) ) {
       if (GEOMBase::GetShape(aSelectedObject, aShape, TopAbs_SHAPE) && !aShape.IsNull()) {
         aSelMgr->GetIndexes(anIt.Value(), aMapIndexes);