PAL15161 (Mesh to pass through a point - preview works wrong for the submesh and group)

Clear selection at Apply()
This commit is contained in:
eap 2007-03-07 10:39:01 +00:00
parent 5a51c1c355
commit 5dc951b4bf

View File

@ -392,8 +392,9 @@ bool SMESHGUI_MakeNodeAtPointOp::onApply()
if (aResult) if (aResult)
{ {
myDlg->myId->setText(""); myDlg->myId->setText("");
SALOME_ListIO aList; SALOME_ListIO aList;
selectionMgr()->setSelectedObjects(aList,false);
aList.Append(myMeshActor->getIO()); aList.Append(myMeshActor->getIO());
selectionMgr()->setSelectedObjects(aList,false); selectionMgr()->setSelectedObjects(aList,false);
SMESH::UpdateView(); SMESH::UpdateView();
@ -578,7 +579,7 @@ void SMESHGUI_MakeNodeAtPointOp::redisplayPreview()
mySimulation->SetData(aMeshPreviewStruct._retn()); mySimulation->SetData(aMeshPreviewStruct._retn());
} }
else else
{ {
mySimulation->SetVisibility(false); mySimulation->SetVisibility(false);
} }