Skip to content

Commit

Permalink
Place pie charts on point
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 9, 2012
1 parent 98e637c commit 79d537a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsdiagram.cpp
Expand Up @@ -293,8 +293,8 @@ void QgsPieDiagram::renderDiagram( const QgsAttributeMap& att, QgsRenderContext&
double w = spu.width();
double h = spu.height();

double baseX = position.x();
double baseY = position.y() - h;
double baseX = position.x() - w / 2;
double baseY = position.y() - h / 2;

mPen.setColor( s.penColor );
setPenWidth( mPen, s, c );
Expand Down

0 comments on commit 79d537a

Please sign in to comment.