Correct bugs on impr. NPAL16558

This commit is contained in:
dmv 2007-11-27 11:10:39 +00:00
parent a8d06c9a58
commit 7e2ce89cad
2 changed files with 4 additions and 4 deletions

View File

@ -165,7 +165,7 @@ Standard_Integer GEOMImpl_ChamferDriver::Execute(TFunction_Logbook& log) const
{ {
double aD = aCI.GetD(); double aD = aCI.GetD();
double anAngle = aCI.GetAngle(); double anAngle = aCI.GetAngle();
if (anAngle>0) if ( (anAngle > 0) && (anAngle < (Standard_PI/2)) )
fill.AddDA(aD, anAngle, E, F); fill.AddDA(aD, anAngle, E, F);
} }
} }
@ -206,7 +206,7 @@ Standard_Integer GEOMImpl_ChamferDriver::Execute(TFunction_Logbook& log) const
{ {
double aD = aCI.GetD(); double aD = aCI.GetD();
double anAngle = aCI.GetAngle(); double anAngle = aCI.GetAngle();
if (anAngle>0) if ( (anAngle > 0) && (anAngle < (Standard_PI/2)) )
fill.AddDA(aD, anAngle, E, F); 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 aD = aCI.GetD();
double anAngle = aCI.GetAngle(); double anAngle = aCI.GetAngle();
if (anAngle>0) if ( (anAngle > 0) && (anAngle < (Standard_PI/2)) )
fill.AddDA(aD, anAngle, E, F); fill.AddDA(aD, anAngle, E, F);
} }
} }

View File

@ -222,7 +222,7 @@ OperationGUI_ChamferDlg::OperationGUI_ChamferDlg(GeometryGUI* theGeometryGUI, QW
{ {
anIter.data()->RangeStepAndValidator( 0.001, COORD_MAX, SpecificStep, 3 ); anIter.data()->RangeStepAndValidator( 0.001, COORD_MAX, SpecificStep, 3 );
if ( anIter.key() == SpinBox44 || anIter.key() == SpinBox34 || anIter.key() == SpinBox24 ) 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_operation_page.html"); setHelpFileName("chamfer_operation_page.html");