Skip to content
Permalink
Browse files

Place pie charts on point

  • Loading branch information
m-kuhn committed Aug 9, 2012
1 parent 98e637c commit 79d537a9ef13b7c5870b4337a61bd08cce165300
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsdiagram.cpp
@@ -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 );

0 comments on commit 79d537a

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