[QGIS Commit] r15637 - trunk/qgis/src/core/pal
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Tue Mar 29 11:51:33 EDT 2011
Author: mhugent
Date: 2011-03-29 08:51:33 -0700 (Tue, 29 Mar 2011)
New Revision: 15637
Modified:
trunk/qgis/src/core/pal/feature.cpp
Log:
Applied modification from strk to fix label direction, ticket #3643
Modified: trunk/qgis/src/core/pal/feature.cpp
===================================================================
--- trunk/qgis/src/core/pal/feature.cpp 2011-03-29 09:28:57 UTC (rev 15636)
+++ trunk/qgis/src/core/pal/feature.cpp 2011-03-29 15:51:33 UTC (rev 15637)
@@ -596,7 +596,7 @@
{
//std::cout << alpha*180/M_PI << std::endl;
if ( flags & FLAG_MAP_ORIENTATION )
- reversed = ( alpha > M_PI / 2 || alpha < -M_PI / 2 );
+ reversed = ( alpha > M_PI / 2 || alpha <= -M_PI / 2 );
if (( !reversed && ( flags & FLAG_ABOVE_LINE ) ) || ( reversed && ( flags & FLAG_BELOW_LINE ) ) )
positions->push_back( new LabelPosition( i, bx + cos( beta ) *distlabel , by + sin( beta ) *distlabel, xrm, yrm, alpha, cost, this, reversed ) ); // Line
More information about the QGIS-commit
mailing list