]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
SIGSEGV after inter integration fix for 0020044: EDF 866 GEOM: Extrusion along a...
authordmv <dmv@opencascade.com>
Wed, 19 Nov 2008 12:19:12 +0000 (12:19 +0000)
committerdmv <dmv@opencascade.com>
Wed, 19 Nov 2008 12:19:12 +0000 (12:19 +0000)
src/GenerationGUI/GenerationGUI_PipeDlg.cxx

index 2492447bdc72c10a9335b4e689b1f78eacd9fcac..76ab34d5b58ca2fc0235bb8bbf83354c271c375a 100644 (file)
@@ -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());
 }