mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
string compare is slow, use rgba member instead
This commit is contained in:
parent
808765ea39
commit
f64dbc00c4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user