Additional fix for IPAL10226.

This commit is contained in:
mzn 2005-12-01 12:55:30 +00:00
parent 106cb1d888
commit 5ed5438bb9

View File

@ -344,6 +344,8 @@ void BasicGUI_PointDlg::SelectionIntoArgument()
if ( aShape.IsNull() )
return;
if ( aShape.ShapeType() != TopAbs_VERTEX )
{
TColStd_IndexedMapOfInteger aMap;
((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( anIO, aMap );
@ -357,13 +359,16 @@ void BasicGUI_PointDlg::SelectionIntoArgument()
if ( aShape.IsNull() || aShape.ShapeType() != TopAbs_VERTEX )
return;
}
else
return;
}
gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
GroupXYZ->SpinBox_DX->SetValue( aPnt.X() );
GroupXYZ->SpinBox_DY->SetValue( aPnt.Y() );
GroupXYZ->SpinBox_DZ->SetValue( aPnt.Z() );
}
}
else if ( id == 1 )
{
myRefPoint = aSelectedObject;