Skip to content
Browse files

Fix calculation of priority for always shown labels

  • Loading branch information
nyalldawson committed Sep 21, 2015
1 parent a4d980d commit e0028d1f4c3c72081826bfabaecd25ad95fbae8b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/pal/feature.cpp
@@ -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();

0 comments on commit e0028d1

Please sign in to comment.
You can’t perform that action at this time.