[QGIS Commit] r11418 -
branches/symbology-ng-branch/src/plugins/labeling
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Mon Aug 17 18:30:11 EDT 2009
Author: wonder
Date: 2009-08-17 18:30:09 -0400 (Mon, 17 Aug 2009)
New Revision: 11418
Modified:
branches/symbology-ng-branch/src/plugins/labeling/pallabeling.cpp
Log:
Fixed misplacement of rotated labels
Modified: branches/symbology-ng-branch/src/plugins/labeling/pallabeling.cpp
===================================================================
--- branches/symbology-ng-branch/src/plugins/labeling/pallabeling.cpp 2009-08-17 20:11:51 UTC (rev 11417)
+++ branches/symbology-ng-branch/src/plugins/labeling/pallabeling.cpp 2009-08-17 22:30:09 UTC (rev 11418)
@@ -541,8 +541,9 @@
// 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)
{
More information about the QGIS-commit
mailing list