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 committed Oct 22, 2011
1 parent 59be561 commit 697b35a
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 @@ -597,9 +597,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 697b35a

Please sign in to comment.