From: dmv Date: Mon, 26 Nov 2007 13:16:50 +0000 (+0000) Subject: Bug IPAL18000 X-Git-Tag: V3_2_9rc2~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fd882cffc953c90ae6ebdbf1b9376b6a3cf0d0e0;p=modules%2Fgeom.git Bug IPAL18000 --- diff --git a/src/GEOMImpl/GEOMImpl_ChamferDriver.cxx b/src/GEOMImpl/GEOMImpl_ChamferDriver.cxx index 5e9059ed5..54431c6dc 100644 --- a/src/GEOMImpl/GEOMImpl_ChamferDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_ChamferDriver.cxx @@ -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); } } diff --git a/src/OperationGUI/OperationGUI_ChamferDlg.cxx b/src/OperationGUI/OperationGUI_ChamferDlg.cxx index 115846fa4..69f2bdcaf 100644 --- a/src/OperationGUI/OperationGUI_ChamferDlg.cxx +++ b/src/OperationGUI/OperationGUI_ChamferDlg.cxx @@ -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");