Skip to content

Commit 7186af4

Browse files
author
wonder
committedAug 17, 2009
Fixed misplacement of rotated labels
git-svn-id: http://svn.osgeo.org/qgis/branches/symbology-ng-branch@11418 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/plugins/labeling/pallabeling.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,9 @@ void PalLabeling::drawLabel( pal::LabelPosition* label, QPainter* painter, const
541541

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

547548
if (drawBuffer)
548549
{

0 commit comments

Comments
 (0)
Please sign in to comment.