Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix runtime warning
  • Loading branch information
jef-n committed Jun 28, 2012
1 parent 8a8f16c commit db91ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -5700,7 +5700,7 @@ QgsVectorLayer::ValueRelationData &QgsVectorLayer::valueRelation( int idx )
const QgsFieldMap &fields = pendingFields();

// FIXME: throw an exception!?
if ( fields.contains( idx ) )
if ( !fields.contains( idx ) )
{
QgsDebugMsg( QString( "field %1 not found" ).arg( idx ) );
}
Expand Down

0 comments on commit db91ea9

Please sign in to comment.