fix spectacular typo

- Using rgba for comparison is still faster, but it does help correctness when you compare two different instances
This commit is contained in:
Crzyrndm 2018-07-30 07:07:32 +12:00
parent 3ae31fadc3
commit 544e90c975

View File

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