From: dmv Date: Wed, 19 Nov 2008 12:19:12 +0000 (+0000) Subject: SIGSEGV after inter integration fix for 0020044: EDF 866 GEOM: Extrusion along a... X-Git-Tag: V5_1_0rc2~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f7cf7400022f611ddf99e6cf1fa04f9b70da4ef6;p=modules%2Fgeom.git SIGSEGV after inter integration fix for 0020044: EDF 866 GEOM: Extrusion along a path : impossible to select a Wire --- diff --git a/src/GenerationGUI/GenerationGUI_PipeDlg.cxx b/src/GenerationGUI/GenerationGUI_PipeDlg.cxx index 2492447bd..76ab34d5b 100644 --- a/src/GenerationGUI/GenerationGUI_PipeDlg.cxx +++ b/src/GenerationGUI/GenerationGUI_PipeDlg.cxx @@ -180,8 +180,8 @@ void GenerationGUI_PipeDlg::ConstructorsClicked( int constructorId ) //================================================================================= void GenerationGUI_PipeDlg::SelectionTypeButtonClicked() { + globalSelection(); if ( GroupPoints->CheckButton1->isChecked() ) { - globalSelection(); localSelection( GEOM::GEOM_Object::_nil(), TopAbs_EDGE ); } else { TColStd_MapOfInteger aMap; @@ -239,7 +239,7 @@ void GenerationGUI_PipeDlg::SelectionIntoArgument() // nbSel == 1 Standard_Boolean testResult = Standard_False; - GEOM::GEOM_Object_ptr aSelectedObject = GEOMBase::ConvertIOinGEOMObject(aSelList.First(), testResult); + GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(aSelList.First(), testResult); if (!testResult || aSelectedObject->_is_nil()) return; @@ -422,9 +422,9 @@ void GenerationGUI_PipeDlg::LineEditReturnPressed() void GenerationGUI_PipeDlg::ActivateThisDialog() { GEOMBase_Skeleton::ActivateThisDialog(); + connect( myGeomGUI->getApp()->selectionMgr(), SIGNAL( currentSelectionChanged() ), + this, SLOT( SelectionIntoArgument() ) ); - connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), - SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())); ConstructorsClicked(getConstructorId()); }