diff --git a/src/core/pal/feature.cpp b/src/core/pal/feature.cpp index 6f657b1..0146490 100644 --- a/src/core/pal/feature.cpp +++ b/src/core/pal/feature.cpp @@ -596,7 +596,10 @@ namespace pal { //std::cout << alpha*180/M_PI << std::endl; if ( flags & FLAG_MAP_ORIENTATION ) - reversed = ( alpha > M_PI / 2 || alpha < -M_PI / 2 ); + { + if ( alpha > M_PI / 2 || alpha < -M_PI / 2 ) reversed = true; + else if ( ex == bx && ey < by ) reversed = true; + } 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