- if (aBoolAttr)
- myReversed = aBoolAttr->value();
- else {
- AttributeSelectionListPtr aSelList =
- std::dynamic_pointer_cast<ModelAPI_AttributeSelectionList>(*anArgIt);
- if (aSelList) {
- int aSize = aSelList->size();
- for (int i = 0; i < aSize; ++i) {
- AttributeSelectionPtr aSelection = aSelList->value(i);
- myFilterArguments.push_back(
- ModelHighAPI_Selection(aSelection->context(), aSelection->value()));
- }
+ if (aBoolAttr) {
+ myReversed = aBoolAttr->value();
+ ++anArgIt;
+ }
+
+ for (; anArgIt != theArguments.end(); ++anArgIt) {
+ AttributeSelectionListPtr aSelList =
+ std::dynamic_pointer_cast<ModelAPI_AttributeSelectionList>(*anArgIt);
+ if (aSelList) {
+ int aSize = aSelList->size();
+ for (int i = 0; i < aSize; ++i) {
+ AttributeSelectionPtr aSelection = aSelList->value(i);
+ myFilterArguments.push_back(FiltersAPI_Argument(aSelection));