Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't double sort in vector layer.
  • Loading branch information
m-kuhn committed Dec 18, 2015
1 parent f2ac1e8 commit d1fd0c1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/qgsvectorlayerfeatureiterator.cpp
Expand Up @@ -816,3 +816,9 @@ void QgsVectorLayerFeatureIterator::updateFeatureGeometry( QgsFeature &f )
f.setGeometry( mSource->mChangedGeometries[f.id()] );
}

bool QgsVectorLayerFeatureIterator::prepareOrderBy( const QList<QgsFeatureRequest::OrderByClause>& orderBys )
{
Q_UNUSED( orderBys );
return true;
}

6 changes: 6 additions & 0 deletions src/core/qgsvectorlayerfeatureiterator.h
Expand Up @@ -161,6 +161,12 @@ class CORE_EXPORT QgsVectorLayerFeatureIterator : public QgsAbstractFeatureItera

QScopedPointer<QgsExpressionContext> mExpressionContext;

/**
* Will always return true. We assume that ordering has been done on provider level already.
*
*/
bool prepareOrderBy( const QList<QgsFeatureRequest::OrderByClause> &orderBys ) override;

//! returns whether the iterator supports simplify geometries on provider side
virtual bool providerCanSimplify( QgsSimplifyMethod::MethodType methodType ) const override;
};
Expand Down

0 comments on commit d1fd0c1

Please sign in to comment.