Skip to content

Commit

Permalink
Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 25, 2019
1 parent e02b5e6 commit 3d4abaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmattributeindex.cpp
Expand Up @@ -84,7 +84,7 @@ QVariantMap QgsAttributeIndexAlgorithm::processAlgorithm( const QVariantMap &par
QgsVectorDataProvider *provider = layer->dataProvider();

int fieldIndex = layer->fields().lookupField( field );
if ( fieldIndex < 0 or layer->fields().fieldOrigin( fieldIndex ) != QgsFields::OriginProvider )
if ( fieldIndex < 0 || layer->fields().fieldOrigin( fieldIndex ) != QgsFields::OriginProvider )
{
feedback->pushInfo( QObject::tr( "Can not create attribute index on %1" ).arg( field ) );
}
Expand Down

0 comments on commit 3d4abaf

Please sign in to comment.