+ mapnik-write-colors-using-rgba-not-hex.patch (jonb)

When you use save_xml() the colors are written out in #RGB format
  which can not represent alpha information. The patch makes it save using
  the rgb()/rgba() strings.
This commit is contained in:
Artem Pavlenko 2009-01-21 15:43:49 +00:00
parent 78f10770ec
commit 2c317f7706

View file

@ -103,7 +103,7 @@ namespace mapnik {
std::basic_ostream<charT, traits> &
operator << ( std::basic_ostream<charT, traits> & s, const mapnik::color & c )
{
std::string hex_string( c.to_hex_string() );
std::string hex_string( c.to_string() );
s << hex_string;
return s;
}