mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-12 01:30:36 +05:00
Additional fix for IPAL10226.
This commit is contained in:
parent
106cb1d888
commit
5ed5438bb9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user