Skip to content

Commit

Permalink
Fix for ticket #3643, direction symbol of label
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@15591 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Mar 24, 2011
1 parent 080e78a commit 76d0e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/pal/feature.cpp
Expand Up @@ -596,7 +596,7 @@ namespace pal
{ {
//std::cout << alpha*180/M_PI << std::endl; //std::cout << alpha*180/M_PI << std::endl;
if ( flags & FLAG_MAP_ORIENTATION ) 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 ) ) ) 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 positions->push_back( new LabelPosition( i, bx + cos( beta ) *distlabel , by + sin( beta ) *distlabel, xrm, yrm, alpha, cost, this, reversed ) ); // Line
Expand Down

0 comments on commit 76d0e28

Please sign in to comment.