]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Correction in dialog for MakeVertexOnSurface()
authorskl <skl@opencascade.com>
Tue, 22 Apr 2008 06:16:55 +0000 (06:16 +0000)
committerskl <skl@opencascade.com>
Tue, 22 Apr 2008 06:16:55 +0000 (06:16 +0000)
src/BasicGUI/BasicGUI_PointDlg.cxx

index 484449ab54c6fb5daeba81715a7b7968df683bd3..af0a6afca4dae8562ff70e8751a306f4dddffb75 100644 (file)
@@ -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( "" );