fix interface issues of image_png and image_jpeg

This commit is contained in:
Jinhao
2016-01-24 01:23:42 +08:00
parent d06deb7e44
commit da6ad460c5
3 changed files with 9 additions and 15 deletions

View File

@@ -579,17 +579,17 @@ namespace nana
if ((style_.module.index != npos) && style_.module.have_selected)
{
node_handle node = nullptr;
if (ui_element::item_arrow == style_.list_trigger)
{
treebase_.tail(style_.active);
node_handle node = treebase_.find_child(style_.module.items[style_.module.index]->text());
node = treebase_.find_child(style_.module.items[style_.module.index]->text());
if (!node)
{
style_.listbox = nullptr;
return;
}
treebase_.cur(node);
_m_selected(node);
}
else if (ui_element::item_root != style_.list_trigger)
{
@@ -597,7 +597,9 @@ namespace nana
return;
}
else
_m_selected(treebase_.tail(style_.module.index));
node = treebase_.tail(style_.module.index);
_m_selected(node);
}
API::refresh_window(window_);