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:
@@ -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--;
|
||||
|
Reference in New Issue
Block a user