mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-27 13:10:34 +05:00
Debug.
This commit is contained in:
parent
c75c1e3d11
commit
6bad26cf66
@ -776,12 +776,15 @@ void CurveCreator_Widget::onMousePress( SUIT_ViewWindow* theViewWindow, QMouseEv
|
|||||||
else
|
else
|
||||||
ic->Select(); // New selection
|
ic->Select(); // New selection
|
||||||
|
|
||||||
|
TopoDS_Shape aShape;
|
||||||
|
|
||||||
ic->InitSelected();
|
ic->InitSelected();
|
||||||
if ( ic->MoreSelected() ) {
|
if ( ic->MoreSelected() )
|
||||||
TopoDS_Shape aShape = ic->SelectedShape();
|
aShape = ic->SelectedShape();
|
||||||
if ( !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
|
|
||||||
aPnt = BRep_Tool::Pnt( TopoDS::Vertex( ic->SelectedShape() ) );
|
if ( !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
|
||||||
} else {
|
aPnt = BRep_Tool::Pnt( TopoDS::Vertex( ic->SelectedShape() ) );
|
||||||
|
else {
|
||||||
OCCViewer_ViewPort3d* vp = ((OCCViewer_ViewWindow*)theViewWindow)->getViewPort();
|
OCCViewer_ViewPort3d* vp = ((OCCViewer_ViewWindow*)theViewWindow)->getViewPort();
|
||||||
aPnt = GEOMUtils::ConvertClickToPoint( pe->x(), pe->y(), vp->getView() );
|
aPnt = GEOMUtils::ConvertClickToPoint( pe->x(), pe->y(), vp->getView() );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user