Skip to content
Permalink
Browse files

Fix uniqueValues for virtual field

  • Loading branch information
m-kuhn committed Jul 24, 2014
1 parent f87bddf commit 302b2ae2553bda9d92724899dee7decd7e44996a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectorlayer.cpp
@@ -2830,7 +2830,7 @@ void QgsVectorLayer::uniqueValues( int index, QList<QVariant> &uniqueValues, int
else if ( origin == QgsFields::OriginEdit || origin == QgsFields::OriginExpression )
{
// the layer is editable, but in certain cases it can still be avoided going through all features
if ( mEditBuffer->mDeletedFeatureIds.isEmpty() && mEditBuffer->mAddedFeatures.isEmpty() && !mEditBuffer->mDeletedAttributeIds.contains( index ) && mEditBuffer->mChangedAttributeValues.isEmpty() )
if ( origin == QgsFields::OriginEdit && mEditBuffer->mDeletedFeatureIds.isEmpty() && mEditBuffer->mAddedFeatures.isEmpty() && !mEditBuffer->mDeletedAttributeIds.contains( index ) && mEditBuffer->mChangedAttributeValues.isEmpty() )
{
return mDataProvider->uniqueValues( index, uniqueValues, limit );
}

0 comments on commit 302b2ae

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