Skip to content
Permalink
Browse files
Applied modification from strk to fix label direction, ticket #3643
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15637 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Mar 29, 2011
1 parent cc84587 commit b423335961f3b6ad8bba11da76c0a3e5901424a3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/pal/feature.cpp
@@ -596,7 +596,7 @@ namespace pal
{
//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

0 comments on commit b423335

Please sign in to comment.