File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -90,13 +90,12 @@ QgsVectorLayerFeatureIterator::QgsVectorLayerFeatureIterator( QgsVectorLayerFeat
90
90
, mFetchedFid( false )
91
91
, mEditGeometrySimplifier( 0 )
92
92
{
93
+ prepareExpressions ();
93
94
94
95
// prepare joins: may add more attributes to fetch (in order to allow join)
95
96
if ( mSource ->mJoinBuffer ->containsJoins () )
96
97
prepareJoins ();
97
98
98
- prepareExpressions ();
99
-
100
99
mHasVirtualAttributes = !mFetchJoinInfo .isEmpty () || !mExpressionFieldInfo .isEmpty ();
101
100
102
101
// by default provider's request is the same
@@ -507,7 +506,7 @@ void QgsVectorLayerFeatureIterator::prepareExpressions()
507
506
if ( mRequest .flags () & QgsFeatureRequest::SubsetOfAttributes )
508
507
{
509
508
QgsAttributeList attrs;
510
- Q_FOREACH ( const QString& col, exp ->referencedColumns () )
509
+ Q_FOREACH ( const QString& col, exp ->referencedColumns () )
511
510
{
512
511
attrs.append ( mSource ->mFields .fieldNameIndex ( col ) );
513
512
}
You can’t perform that action at this time.
0 commit comments