X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FBasicGUI%2FBasicGUI_CurveDlg.cxx;h=2a962c46180c4427c13a3511d6f6c7b382b939b3;hb=643c92eb8f6e84b5643ba9c3bc990110d166f96b;hp=b1c6f000f0fa6f5a736fa880321867117525df96;hpb=6ceb0d775030ef212be8e999ac432201d4257f86;p=modules%2Fgeom.git diff --git a/src/BasicGUI/BasicGUI_CurveDlg.cxx b/src/BasicGUI/BasicGUI_CurveDlg.cxx index b1c6f000f..2a962c461 100644 --- a/src/BasicGUI/BasicGUI_CurveDlg.cxx +++ b/src/BasicGUI/BasicGUI_CurveDlg.cxx @@ -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(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);