Skip to content
Permalink
Browse files

Label direction symbol shouldn't depend on "map" vs. "line" orientation.

Refer to issue #3643 for further discussion
  • Loading branch information
Sandro Santilli
Sandro Santilli committed Oct 22, 2011
1 parent 59be561 commit 697b35a4185df804baa0f648389a05ed8a7d59fa
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/core/pal/feature.cpp
@@ -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

0 comments on commit 697b35a

Please sign in to comment.
You can’t perform that action at this time.