Skip to content
Permalink
Browse files

Don't double sort in vector layer.

  • Loading branch information
m-kuhn committed Dec 16, 2015
1 parent f2ac1e8 commit d1fd0c1829fec690979735e1708ec45ac8e1e0b5
Showing with 12 additions and 0 deletions.
  1. +6 −0 src/core/qgsvectorlayerfeatureiterator.cpp
  2. +6 −0 src/core/qgsvectorlayerfeatureiterator.h
@@ -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;
}

@@ -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;
};

0 comments on commit d1fd0c1

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