Skip to content
Permalink
Browse files
Diagram width was not correctly calculated
  • Loading branch information
m-kuhn committed Aug 10, 2012
1 parent 234f2f0 commit 313163d
Showing 1 changed file with 1 addition and 1 deletion.
@@ -39,7 +39,7 @@ QSizeF QgsHistogramDiagram::diagramSize( const QgsAttributeMap& attributes, cons

double maxValue = attIt.value().toDouble();

for ( ; attIt != attributes.constEnd(); ++attIt )
for ( ++attIt; attIt != attributes.constEnd(); ++attIt )
{
maxValue = qMax( attIt.value().toDouble(), maxValue );
}

0 comments on commit 313163d

Please sign in to comment.