item_proxy bug fix: postfix increment operator

The behavior of the postfix increment operator is not consistent with the increment operator concept (currently just returns the next sibling node).
This commit is contained in:
ErrorFlynn 2019-09-20 23:38:09 -04:00 committed by GitHub
parent e626f816b3
commit 59d3a68485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1274,7 +1274,10 @@ namespace nana
item_proxy item_proxy::operator++(int) item_proxy item_proxy::operator++(int)
{ {
return sibling(); item_proxy ip(*this);
if(trigger_ && node_)
node_ = node_->next;
return ip;
} }
item_proxy& item_proxy::operator*() item_proxy& item_proxy::operator*()