Skip to content

Commit

Permalink
Draw histogram diagrams in assigned space (no half-bar-width offset)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 29, 2012
1 parent 6f97d1e commit 83b4caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/diagram/qgshistogramdiagram.cpp
Expand Up @@ -125,7 +125,7 @@ void QgsHistogramDiagram::renderDiagram( const QgsAttributeMap& att, QgsRenderCo
values.push_back( currentVal );
}

double currentOffset = 0 - ( values.size() * s.barWidth ) / 2;
double currentOffset = 0;
double scaledWidth = sizePainterUnits( s.barWidth, s, c );

double baseX = position.x();
Expand Down

0 comments on commit 83b4caa

Please sign in to comment.