From: aba Date: Fri, 3 Feb 2017 08:59:51 +0000 (+0300) Subject: 0028239: PMIVis - defined positions and number of places are not loaded properly... X-Git-Tag: V7_2_0_beta~257 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=ea3193f52ed74bb5f404d87d98b0639ab4321a15;p=occt.git 0028239: PMIVis - defined positions and number of places are not loaded properly in some cases Corrected 'addTolModif' test command --- diff --git a/src/XDEDRAW/XDEDRAW_GDTs.cxx b/src/XDEDRAW/XDEDRAW_GDTs.cxx index e22e89ac90..0b66031571 100644 --- a/src/XDEDRAW/XDEDRAW_GDTs.cxx +++ b/src/XDEDRAW/XDEDRAW_GDTs.cxx @@ -1322,7 +1322,7 @@ static Standard_Integer addTolModif (Draw_Interpretor& di, Standard_Integer argc { 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(); anObj->AddModifier((XCAFDimTolObjects_GeomToleranceModif)Draw::Atoi(argv[i]));