Skip to content
Permalink
Browse files

fix runtime warning

  • Loading branch information
jef-n committed Jun 28, 2012
1 parent 8a8f16c commit db91ea982b0f249321faf004d8c26473a3457564
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectorlayer.cpp
@@ -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 ) );
}

0 comments on commit db91ea9

Please sign in to comment.
You can’t perform that action at this time.