Skip to content
Permalink
Browse files

Always cache values and add fid to feature hash

  • Loading branch information
m-kuhn committed Oct 27, 2016
1 parent f80a33b commit c2b84241ec474a7405f293e47d4814d9f21954be
Showing with 2 additions and 2 deletions.
  1. +1 −2 src/core/qgsexpression.cpp
  2. +1 −0 src/core/qgsfeature.cpp
@@ -697,8 +697,7 @@ static QVariant fcnAggregate( const QVariantList& values, const QgsExpressionCon
subContext.appendScope( subScope );
result = vl->aggregate( aggregate, subExpression, parameters, &subContext, &ok );

if ( ok )
context->setCachedValue( cacheKey, result );
context->setCachedValue( cacheKey, result );
}
else
{
@@ -323,6 +323,7 @@ uint qHash( const QgsFeature& key, uint seed )
}

hash ^= qHash( key.geometry().exportToWkt() );
hash ^= qHash( key.id() );

return hash;
}

0 comments on commit c2b8424

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