string compare is slow, use rgba member instead

This commit is contained in:
Crzyrndm 2018-07-29 16:24:09 +12:00
parent 808765ea39
commit f64dbc00c4

View File

@ -301,7 +301,7 @@ bool color::operator==(const xlnt::color &other) const
case color_type::theme:
return theme_.index() == other.theme_.index();
case color_type::rgb:
return rgb_.hex_string() == other.rgb_.hex_string();
return rgb_.rgba() == rgb_.rgba();
}
return false;