Bug IPAL19360 - Qt4 porting. Activation of functionality ?Modification/Mesh pass throught a point? leads to fatal error

This commit is contained in:
ouv 2008-03-27 09:23:36 +00:00
parent 02ed758822
commit edbbbf562b

View File

@ -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<SUIT_SelectionFilter*> filters;
@ -314,7 +312,9 @@ void SMESHGUI_MakeNodeAtPointOp::startOperation()
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);