TabBar: Fixed TabBar 'Move right after' issue

git-svn-id: svn://ultimatepp.org/upp/trunk@12720 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-01-27 12:17:32 +00:00
parent 82dcb5dbf6
commit 9f8a72495b

View file

@ -473,7 +473,7 @@ void TabBar::ContextMenu(Bar& bar)
Refresh();
});;
});
if(tabs.GetCount() - 2 >= ii)
if(tabs.GetCount() - 2 >= ii && ii >= 0)
bar.Sub(t_("Move right after"), [=](Bar& bar) {
for(int i = ii+1; i < tabs.GetCount(); i++)
bar.Add(tabs[i].value.ToString(),[=] {