Skip to content
Permalink
Browse files

Fixed misplacement of rotated labels

git-svn-id: http://svn.osgeo.org/qgis/branches/symbology-ng-branch@11418 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Aug 17, 2009
1 parent c509153 commit 7186af4e2b17ec9713b2f75005241e28f8cf7a6a
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/plugins/labeling/pallabeling.cpp
@@ -541,8 +541,9 @@ void PalLabeling::drawLabel( pal::LabelPosition* label, QPainter* painter, const

// shift by one as we have 2px border
painter->save();
painter->translate( QPointF(outPt.x()+1, outPt.y()-1-lyr.fontBaseline) );
painter->translate( QPointF(outPt.x(), outPt.y()) );
painter->rotate(-label->getAlpha() * 180 / M_PI );
painter->translate( QPointF(1, -1-lyr.fontBaseline) );

if (drawBuffer)
{

0 comments on commit 7186af4

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