Fix listbox for auto_draw+inline_factory+item_proxy::value.

When calling templated append() overload on a shown listbox, auto_draw
caused an early redraw, which issued the inline widget set() member
function before the value() and value_ptr() were actually set.
This commit is contained in:
Leonardo Backes Vargas
2015-11-05 23:59:27 -02:00
parent 408b4f408b
commit 1c729f1d92
2 changed files with 9 additions and 1 deletions

View File

@@ -368,6 +368,9 @@ namespace nana
item_proxy iter{ ess_, index_pair(pos_, size() - 1) };
if (set_value)
iter.value(std::forward<T>(t));
update();
return iter;
}
@@ -441,6 +444,7 @@ namespace nana
essence_t* ess_{nullptr};
category_t* cat_{nullptr};
size_type pos_{0}; ///< Absolute position, not relative to display, and dont change during sort()
void update();
};
struct export_options