]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Bug IPAL18000
authordmv <dmv@opencascade.com>
Mon, 26 Nov 2007 13:16:50 +0000 (13:16 +0000)
committerdmv <dmv@opencascade.com>
Mon, 26 Nov 2007 13:16:50 +0000 (13:16 +0000)
src/GEOMImpl/GEOMImpl_ChamferDriver.cxx
src/OperationGUI/OperationGUI_ChamferDlg.cxx

index 5e9059ed50ffb4fdab7096dfee92ce998a1310ee..54431c6dcc222e61f9234fc8245e369c2949c14c 100644 (file)
@@ -165,7 +165,7 @@ Standard_Integer GEOMImpl_ChamferDriver::Execute(TFunction_Logbook& log) const
                  {
                    double aD = aCI.GetD();
                    double anAngle = aCI.GetAngle();
-                   if (anAngle > 0)
+                   if ( (anAngle > 0) && (anAngle < (Standard_PI/2)) )
                      fill.AddDA(aD, anAngle, E, F);
                  }
              }
@@ -206,7 +206,7 @@ Standard_Integer GEOMImpl_ChamferDriver::Execute(TFunction_Logbook& log) const
                    {
                      double aD = aCI.GetD();
                      double anAngle = aCI.GetAngle();
-                     if (anAngle > 0)
+                     if ( (anAngle > 0) && (anAngle < (Standard_PI/2)) )
                        fill.AddDA(aD, anAngle, E, F);
                    }
              }
@@ -241,7 +241,7 @@ else if (aType == CHAMFER_SHAPE_EDGES || aType == CHAMFER_SHAPE_EDGES_AD)
            {
              double aD = aCI.GetD();
              double anAngle = aCI.GetAngle();
-             if (anAngle > 0)
+             if ( (anAngle > 0) && (anAngle < (Standard_PI/2)) )
                fill.AddDA(aD, anAngle, E, F);
            }
        } 
index 115846fa4f2e763eade4bd14c242ae621cb95bc2..69f2bdcaf99f436df3e08d41198a97ce98f6c07c 100644 (file)
@@ -222,7 +222,7 @@ OperationGUI_ChamferDlg::OperationGUI_ChamferDlg(GeometryGUI* theGeometryGUI, QW
     {
       anIter.data()->RangeStepAndValidator( 0.001, COORD_MAX, SpecificStep, 3 );
       if ( anIter.key() == SpinBox44 || anIter.key() == SpinBox34 || anIter.key() == SpinBox24 )
-           anIter.data()->RangeStepAndValidator( 0, 90, 5, 0 );
+           anIter.data()->RangeStepAndValidator( 0.001, 89.999, 5, 0 );
     }
 
   setHelpFileName("chamfer.htm");