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

@@ -4188,7 +4188,6 @@ namespace nana
auto & m = cat_->items.back();
m.bgcolor = wd->bgcolor();
m.fgcolor = wd->fgcolor();
ess_->update();
}
}
@@ -4204,6 +4203,11 @@ namespace nana
auto i = ess_->lister.get(pos_);
cat_ = &(*i);
}
void cat_proxy::update() {
ess_->update();
}
//class cat_proxy
//end class cat_proxy