- if (nbModified > 0) {
- TDF_Label aWhatHistoryLabel = anArgumentHistoryLabel.FindChild(ie, Standard_True);
- Handle(TDataStd_IntegerArray) anAttr =
- TDataStd_IntegerArray::Set(aWhatHistoryLabel, 1, nbModified);
-
- int ih = 1;
- TopTools_ListIteratorOfListOfShape itM (aModified);
- //TopTools_ListIteratorOfListOfShape itM (aModified);
- for (; itM.More(); itM.Next(), ++ih) {
- int id = aResIndices.FindIndex(itM.Value());
- anAttr->SetValue(ih, id);
- }
+
+ TDF_Label aWhatHistoryLabel = anArgumentHistoryLabel.FindChild(ie, Standard_True);
+ Handle(TDataStd_IntegerArray) anAttr =
+ TDataStd_IntegerArray::Set(aWhatHistoryLabel, 1, pModified->Extent());
+
+ int ih = 1;
+ TopTools_ListIteratorOfListOfShape itM (*pModified);
+ for (; itM.More(); itM.Next(), ++ih) {
+ int id = aResIndices.FindIndex(itM.Value());
+ anAttr->SetValue(ih, id);