diff --git a/include/mapnik/png_io.hpp b/include/mapnik/png_io.hpp index 6701fd28c..16bf69049 100644 --- a/include/mapnik/png_io.hpp +++ b/include/mapnik/png_io.hpp @@ -126,7 +126,7 @@ namespace mapnik { mapnik::rgb c((val)&0xff, (val>>8)&0xff, (val>>16) & 0xff); byte index = tree.quantize(c); if (x%2 > 0) index = index<<4; - if ((val>>24)^0x80) index = 0;//alfa + if (!((val>>24)&0x80)) index = 0;//alfa row_out[x>>1] |= index; } }