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 authored and mach0 committed Nov 13, 2011
1 parent d2503d5 commit 712fd6167e1cea5f51b8bdb8ea7b16eac826b6a0
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/core/pal/feature.cpp
@@ -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

0 comments on commit 712fd61

Please sign in to comment.