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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user