We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
2 parents b058df7 + 333a8e9 commit 5945a84Copy full SHA for 5945a84
src/core/qgsvectorlayerfeatureiterator.cpp
@@ -722,12 +722,11 @@ void QgsVectorLayerFeatureIterator::createOrderedJoinList()
722
int joinField = mOrderedJoinInfoList.at( i ).joinField;
723
724
QgsAttributeList attributes = mOrderedJoinInfoList.at( i ).attributes;
725
- QgsAttributeList::const_iterator attIt = attributes.constBegin();
726
- for ( ; attIt != attributes.constEnd(); ++attIt )
+ for ( int n = 0; n < attributes.size(); n++ )
727
{
728
- if ( *attIt != joinField )
+ if ( n != joinField )
729
730
- resolvedFields.insert( joinField < *attIt ? *attIt + offset - 1 : *attIt + offset );
+ resolvedFields.insert( joinField < n ? n + offset - 1 : n + offset );
731
}
732
733
0 commit comments