+ 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:
parent
78f10770ec
commit
2c317f7706
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ namespace mapnik {
|
||||||
std::basic_ostream<charT, traits> &
|
std::basic_ostream<charT, traits> &
|
||||||
operator << ( std::basic_ostream<charT, traits> & s, const mapnik::color & c )
|
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;
|
s << hex_string;
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue