Skip to content

Commit

Permalink
Fix calculation of priority for always shown labels
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 21, 2015
1 parent a4d980d commit e0028d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/pal/feature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ namespace pal
//if feature is set to always show, bump the priority up by orders of magnitude
//so that other feature's labels are unlikely to be placed over the label for this feature
//(negative numbers due to how pal::extract calculates inactive cost)
return 0.2;
return -0.2;
}

return mLF->priority() >= 0 ? mLF->priority() : mLF->layer()->priority();
Expand Down

0 comments on commit e0028d1

Please sign in to comment.