From: ouv Date: Thu, 27 Mar 2008 09:23:36 +0000 (+0000) Subject: Bug IPAL19360 - Qt4 porting. Activation of functionality ?Modification/Mesh pass... X-Git-Tag: VSR_280308~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=edbbbf562b0af05d94766d70e67b86859c758d1f;p=modules%2Fsmesh.git Bug IPAL19360 - Qt4 porting. Activation of functionality ?Modification/Mesh pass throught a point? leads to fatal error --- diff --git a/src/SMESHGUI/SMESHGUI_MakeNodeAtPointDlg.cxx b/src/SMESHGUI/SMESHGUI_MakeNodeAtPointDlg.cxx index 9dc81ed3c..1c47f52e9 100644 --- a/src/SMESHGUI/SMESHGUI_MakeNodeAtPointDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_MakeNodeAtPointDlg.cxx @@ -303,8 +303,6 @@ void SMESHGUI_MakeNodeAtPointOp::startOperation() mySimulation->GetActor()->SetProperty(aProp); aProp->Delete(); - SMESHGUI_SelectionOp::startOperation(); - // SalomeApp_TypeFilter depends on a current study if ( myFilter ) delete myFilter; QList filters; @@ -313,8 +311,10 @@ void SMESHGUI_MakeNodeAtPointOp::startOperation() vertexType.Add( TopAbs_VERTEX ); filters.append( new SMESH_NumberFilter("GEOM", TopAbs_VERTEX, 1, vertexType )); myFilter = new SMESH_LogicalFilter( filters, SMESH_LogicalFilter::LO_OR ); - - activateSelection(); // set filters + + // IPAL19360 + SMESHGUI_SelectionOp::startOperation(); // this method should be called only after filter creation + //activateSelection(); // set filters // called inside of previous statement myDlg->myX->SetValue(0); myDlg->myY->SetValue(0);