Skip to content

Commit 9a167ba

Browse files
author
mhugent
committed
Applied modification from strk to fix label direction, ticket #3643
git-svn-id: http://svn.osgeo.org/qgis/trunk@15637 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 5a52828 commit 9a167ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/pal/feature.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ namespace pal
596596
{
597597
//std::cout << alpha*180/M_PI << std::endl;
598598
if ( flags & FLAG_MAP_ORIENTATION )
599-
reversed = ( alpha > M_PI / 2 || alpha < -M_PI / 2 );
599+
reversed = ( alpha > M_PI / 2 || alpha <= -M_PI / 2 );
600600

601601
if (( !reversed && ( flags & FLAG_ABOVE_LINE ) ) || ( reversed && ( flags & FLAG_BELOW_LINE ) ) )
602602
positions->push_back( new LabelPosition( i, bx + cos( beta ) *distlabel , by + sin( beta ) *distlabel, xrm, yrm, alpha, cost, this, reversed ) ); // Line

0 commit comments

Comments
 (0)