Navigation Menu

Skip to content

Commit

Permalink
Applied modification from strk to fix label direction, ticket #3643
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@15637 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Mar 29, 2011
1 parent 5a52828 commit 9a167ba
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;
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
Expand Down

0 comments on commit 9a167ba

Please sign in to comment.