fix crash where listbox::item_proxy==str

This commit is contained in:
Jinhao 2017-12-13 06:28:12 +08:00
parent 81018c21fd
commit 5653bd2416

View File

@ -4662,12 +4662,12 @@ namespace nana
bool item_proxy::operator==(const std::string& s) const bool item_proxy::operator==(const std::string& s) const
{ {
return (text(pos_.item) == s); return (text(0) == s);
} }
bool item_proxy::operator==(const std::wstring& s) const bool item_proxy::operator==(const std::wstring& s) const
{ {
return (text(pos_.item) == to_utf8(s)); return (text(0) == to_utf8(s));
} }
item_proxy & item_proxy::operator=(const item_proxy& rhs) item_proxy & item_proxy::operator=(const item_proxy& rhs)