1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0028250: Data Exchange - Wrong number of geometric tolerance modifiers.

fix some copy paste mistakes,
update test cases.
This commit is contained in:
ika
2016-12-20 13:25:02 +03:00
committed by kgv
parent b6826918fe
commit 51663cb434
9 changed files with 20 additions and 10 deletions

View File

@@ -3237,7 +3237,7 @@ static void WriteGeomTolerance (const Handle(XSControl_WorkSession) &WS,
Standard_Integer aModifNb = aModifiers.Length();
if (anObject->GetMaterialRequirementModifier() != XCAFDimTolObjects_GeomToleranceMatReqModif_None)
aModifNb++;
for (Standard_Integer i = 1; i < aModifiers.Length(); i++)
for (Standard_Integer i = 1; i <= aModifiers.Length(); i++)
if (aModifiers.Value(i) == XCAFDimTolObjects_GeomToleranceModif_All_Around ||
aModifiers.Value(i) == XCAFDimTolObjects_GeomToleranceModif_All_Over)
aModifNb--;