bug3643.diff
src/core/pal/feature.cpp | ||
---|---|---|
596 | 596 |
{ |
597 | 597 |
//std::cout << alpha*180/M_PI << std::endl; |
598 | 598 |
if ( flags & FLAG_MAP_ORIENTATION ) |
599 |
reversed = ( alpha > M_PI / 2 || alpha < -M_PI / 2 ); |
|
599 |
{ |
|
600 |
if ( alpha > M_PI / 2 || alpha < -M_PI / 2 ) reversed = true; |
|
601 |
else if ( ex == bx && ey < by ) reversed = true; |
|
602 |
} |
|
600 | 603 | |
601 | 604 |
if (( !reversed && ( flags & FLAG_ABOVE_LINE ) ) || ( reversed && ( flags & FLAG_BELOW_LINE ) ) ) |
602 | 605 |
positions->push_back( new LabelPosition( i, bx + cos( beta ) *distlabel , by + sin( beta ) *distlabel, xrm, yrm, alpha, cost, this, reversed ) ); // Line |