1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-09 18:50:54 +03:00

0028239: PMIVis - defined positions and number of places are not loaded properly in some cases

Corrected 'addTolModif' test command
This commit is contained in:
aba 2017-02-03 11:59:51 +03:00 committed by apn
parent bf961e3c29
commit ea3193f52e

View File

@ -1322,7 +1322,7 @@ static Standard_Integer addTolModif (Draw_Interpretor& di, Standard_Integer argc
{ {
for(Standard_Integer i = 3; i < argc; i++) for(Standard_Integer i = 3; i < argc; i++)
{ {
if(Draw::Atoi(argv[i]) > -1 && Draw::Atoi(argv[i]) < 15) if(Draw::Atoi(argv[i]) > -1 && Draw::Atoi(argv[i]) < 17)
{ {
Handle(XCAFDimTolObjects_GeomToleranceObject) anObj = aGeomTolerance->GetObject(); Handle(XCAFDimTolObjects_GeomToleranceObject) anObj = aGeomTolerance->GetObject();
anObj->AddModifier((XCAFDimTolObjects_GeomToleranceModif)Draw::Atoi(argv[i])); anObj->AddModifier((XCAFDimTolObjects_GeomToleranceModif)Draw::Atoi(argv[i]));