Merge branch 'develop_2' of https://github.com/dankan1890/nana into dankan1890-develop_2

This commit is contained in:
Jinhao
2016-08-23 07:50:10 +08:00
6 changed files with 9 additions and 9 deletions

View File

@@ -155,7 +155,7 @@ namespace nana
--(state_.index);
else if(recycle)
{
state_.index = static_cast<unsigned>(module_->items.size() - 1);
state_.index = module_->items.size() - 1;
state_.offset_y = last_offset_y;
}
@@ -173,7 +173,7 @@ namespace nana
}
if(state_.index >= state_.offset_y + module_->max_items)
state_.offset_y = static_cast<unsigned>(state_.index - module_->max_items + 1);
state_.offset_y = state_.index - module_->max_items + 1;
}
}
else