backport r1891

This commit is contained in:
Dane Springmeyer 2010-07-14 01:42:38 +00:00
parent 4c506cf380
commit 7a6aa1e537

View file

@ -295,7 +295,7 @@ namespace mapnik {
int dist, newdist; int dist, newdist;
// find closest match based on mean of r,g,b,a // 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(); ind = pit-sorted_pal_.begin();
if (ind == sorted_pal_.size()) if (ind == sorted_pal_.size())
ind--; ind--;