Skip to content

Commit

Permalink
Label direction symbol shouldn't depend on "map" vs. "line" orientation.
Browse files Browse the repository at this point in the history
Refer to issue #3643 for further discussion
  • Loading branch information
Sandro Santilli authored and mach0 committed Nov 13, 2011
1 parent d2503d5 commit 712fd61
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/pal/feature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,8 @@ namespace pal
#endif
if ( f->layer->arrangement == P_LINE )
{
//std::cout << alpha*180/M_PI << std::endl;
if ( flags & FLAG_MAP_ORIENTATION )
reversed = ( alpha > M_PI / 2 || alpha <= -M_PI / 2 );
//if ( flags & FLAG_MAP_ORIENTATION ) // see bug #3643
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 712fd61

Please sign in to comment.