From: skl Date: Tue, 22 Apr 2008 06:16:55 +0000 (+0000) Subject: Correction in dialog for MakeVertexOnSurface() X-Git-Tag: V4_1_2rc2~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e94c40adc0950c866b29463e05425eeb1ee63b41;p=modules%2Fgeom.git Correction in dialog for MakeVertexOnSurface() --- diff --git a/src/BasicGUI/BasicGUI_PointDlg.cxx b/src/BasicGUI/BasicGUI_PointDlg.cxx index 484449ab5..af0a6afca 100644 --- a/src/BasicGUI/BasicGUI_PointDlg.cxx +++ b/src/BasicGUI/BasicGUI_PointDlg.cxx @@ -727,18 +727,17 @@ bool BasicGUI_PointDlg::execute( ObjectList& objects ) break; } - if ( getConstructorId() == 1 || getConstructorId() == 2 ) - { + if ( getConstructorId() == 1 || getConstructorId() == 2 || + getConstructorId() == 4 ) { TopoDS_Shape aShape; - if ( GEOMBase::GetShape( anObj, aShape ) && !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX ) - { + if ( GEOMBase::GetShape( anObj, aShape ) && !aShape.IsNull() && + aShape.ShapeType() == TopAbs_VERTEX ) { gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) ); myX->setText( QString( "%1" ).arg( aPnt.X() ) ); myY->setText( QString( "%1" ).arg( aPnt.Y() ) ); myZ->setText( QString( "%1" ).arg( aPnt.Z() ) ); } - else - { + else { myX->setText( "" ); myY->setText( "" ); myZ->setText( "" );