Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Nov 24, 2017
1 parent 09cffcd commit e541a38
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/providers/arcgisrest/qgsafsprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ bool QgsAfsProvider::getFeature( const QgsFeatureId &id, QgsFeature &f, bool fet
QgsFeature feature;
int featureId = startId + i;


// Set attributes
if ( !fetchAttribIdx.isEmpty() )
{
Expand All @@ -228,7 +227,7 @@ bool QgsAfsProvider::getFeature( const QgsFeatureId &id, QgsFeature &f, bool fet
foreach ( int idx, fetchAttribIdx )
{
attributes[idx] = attributesData[mFields.at( idx ).name()];
if ( mFields.at( idx ).name() == QStringLiteral( "OBJECTID" ) )
if ( mFields.at( idx ).name() == "OBJECTID" )
{
featureId = startId + objectIds.indexOf( attributesData[mFields.at( idx ).name()].toInt() );
}
Expand All @@ -253,7 +252,7 @@ bool QgsAfsProvider::getFeature( const QgsFeatureId &id, QgsFeature &f, bool fet
}

// If added to cached, return feature
QMap<QgsFeatureId, QgsFeature>::const_iterator it = mCache.find( id );
it = mCache.find( id );
if ( it != mCache.end() )
{
f = it.value();
Expand Down

0 comments on commit e541a38

Please sign in to comment.