backport r1891
This commit is contained in:
parent
4c506cf380
commit
7a6aa1e537
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ namespace mapnik {
|
|||
int dist, newdist;
|
||||
|
||||
// find closest match based on mean of r,g,b,a
|
||||
vector<rgba>::iterator pit = std::lower_bound(sorted_pal_.begin(), sorted_pal_.end(), c, rgba_mean_sort_cmp());
|
||||
std::vector<rgba>::iterator pit = std::lower_bound(sorted_pal_.begin(), sorted_pal_.end(), c, rgba_mean_sort_cmp());
|
||||
ind = pit-sorted_pal_.begin();
|
||||
if (ind == sorted_pal_.size())
|
||||
ind--;
|
||||
|
|
Loading…
Reference in a new issue