Skip to content

Commit

Permalink
Fix calculation of graduated symbology breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 1, 2013
1 parent fe898a0 commit cc239b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
Expand Up @@ -801,7 +801,7 @@ QgsGraduatedSymbolRendererV2* QgsGraduatedSymbolRendererV2::createRenderer(
QgsAttributeList lst;
lst.append( attrNum );

QgsFeatureIterator fit = vlayer->getFeatures( QgsFeatureRequest().setFlags( QgsFeatureRequest::NoGeometry ).setSubsetOfAttributes( QgsAttributeList() ) );
QgsFeatureIterator fit = vlayer->getFeatures( QgsFeatureRequest().setFlags( QgsFeatureRequest::NoGeometry ).setSubsetOfAttributes( lst ) );
while ( fit.nextFeature( f ) )
values.append( f.attribute( attrNum ).toDouble() );
// calculate the breaks
Expand Down

0 comments on commit cc239b2

Please sign in to comment.