From 7d9ae6b54f5ec98fff137636f7ad2a60d10ce6b6 Mon Sep 17 00:00:00 2001 From: mzn Date: Fri, 2 Dec 2005 10:52:13 +0000 Subject: [PATCH] Fix for bug IPAL10313 (It is impossible to select "Start point" from 3D viewer in "Extrusion along a path" dialog box). --- src/SMESHGUI/SMESHGUI_ExtrusionAlongPathDlg.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_ExtrusionAlongPathDlg.cxx b/src/SMESHGUI/SMESHGUI_ExtrusionAlongPathDlg.cxx index 45c96260b..7b68e4817 100644 --- a/src/SMESHGUI/SMESHGUI_ExtrusionAlongPathDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_ExtrusionAlongPathDlg.cxx @@ -640,7 +640,8 @@ bool SMESHGUI_ExtrusionAlongPathDlg::ClickOnApply() } //mySelectionMgr->clearSelected(); - SMESH::UpdateView(); + SMESH::Update( myMeshActor->getIO(), myMeshActor->GetVisibility() ); + //SMESH::UpdateView(); Init(false); ConstructorsClicked(GetConstructorId()); return true; @@ -861,8 +862,12 @@ void SMESHGUI_ExtrusionAlongPathDlg::SelectionIntoArgument() // try to get shape from selection Handle(SALOME_InteractiveObject) IO = aList.First(); + SMESH_Actor* aPathActor = SMESH::FindActorByObject(myPathMesh); + if ( !aPathActor ) + return; + QString aString; - int aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, myMeshActor->getIO(), aString); + int aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, aPathActor->getIO(), aString); if (aNbUnits == 1) StartPointLineEdit->setText(aString.stripWhiteSpace()); -- 2.30.2