git-svn-id: http://svn.osgeo.org/qgis/trunk@9259 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
jef 2008-09-05 08:46:02 +00:00
parent 0a6dbb7112
commit 6fb8d103fd

View File

@ -304,7 +304,7 @@ void QgsVectorDataProvider::uniqueValues( int index, QList<QVariant> &values )
while ( getNextFeature( f ) ) while ( getNextFeature( f ) )
{ {
if ( set.contains( f.attributeMap()[index].toString() ) ) if ( !set.contains( f.attributeMap()[index].toString() ) )
{ {
values.append( f.attributeMap()[index] ); values.append( f.attributeMap()[index] );
set.insert( f.attributeMap()[index].toString() ); set.insert( f.attributeMap()[index].toString() );