Fix reference to non-existent 'colors'

Allows builds with DEBUG=true to succeed.
This commit is contained in:
Seth Fitzsimmons 2013-10-14 14:40:19 -07:00
parent cf7aa83bd8
commit 1304a6a1b8

View file

@ -684,7 +684,7 @@ void save_as_png8_hex(T1 & file,
//transparency values per palette index
std::vector<mapnik::rgba> pal;
tree.create_palette(pal);
assert(int(pal.size()) <= colors);
assert(int(pal.size()) <= opts.colors);
std::vector<mapnik::rgb> palette;
std::vector<unsigned> alphaTable;
for(unsigned i=0; i<pal.size(); i++)