Skip to content

Commit

Permalink
Diagram width was not correctly calculated
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 10, 2012
1 parent 234f2f0 commit 313163d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/diagram/qgshistogramdiagram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 313163d

Please sign in to comment.