Skip to content

Commit

Permalink
Fixed misplacement of rotated labels
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/branches/symbology-ng-branch@11418 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Aug 17, 2009
1 parent c509153 commit 7186af4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/labeling/pallabeling.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit 7186af4

Please sign in to comment.