From 59d3a684855d08bd78f50ab3137aa2c8478b6f13 Mon Sep 17 00:00:00 2001 From: ErrorFlynn Date: Fri, 20 Sep 2019 23:38:09 -0400 Subject: [PATCH] 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). --- source/gui/widgets/treebox.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/gui/widgets/treebox.cpp b/source/gui/widgets/treebox.cpp index c70c4330..233099c6 100644 --- a/source/gui/widgets/treebox.cpp +++ b/source/gui/widgets/treebox.cpp @@ -1274,7 +1274,10 @@ namespace nana 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*()