[QGIS Commit] r15591 - trunk/qgis/src/core/pal

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Mar 24 12:23:41 EDT 2011


Author: mhugent
Date: 2011-03-24 09:23:41 -0700 (Thu, 24 Mar 2011)
New Revision: 15591

Modified:
   trunk/qgis/src/core/pal/feature.cpp
Log:
Fix for ticket #3643, direction symbol of label

Modified: trunk/qgis/src/core/pal/feature.cpp
===================================================================
--- trunk/qgis/src/core/pal/feature.cpp	2011-03-24 08:13:27 UTC (rev 15590)
+++ trunk/qgis/src/core/pal/feature.cpp	2011-03-24 16:23:41 UTC (rev 15591)
@@ -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