Skip to content
Permalink
Browse files

Draw histogram diagrams in assigned space (no half-bar-width offset)

  • Loading branch information
m-kuhn committed Aug 29, 2012
1 parent 6f97d1e commit 83b4caae0cae3827218d59b0923c9888319ed469
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/diagram/qgshistogramdiagram.cpp
@@ -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();

0 comments on commit 83b4caa

Please sign in to comment.
You can’t perform that action at this time.