Skip to content
Permalink
Browse files
Merge pull request #449 from nyalldawson/grad_fixes
Fix calculation of graduated symbology breaks (Fix #7256)
  • Loading branch information
NathanW2 committed Mar 1, 2013
2 parents 4baba76 + cc239b2 commit 54f3e0a445140e38cdcb4049e5d55d658968ac9f
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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

0 comments on commit 54f3e0a

Please sign in to comment.