TabBar: fixed group issue

git-svn-id: svn://ultimatepp.org/upp/trunk@10033 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-07-12 16:19:08 +00:00
parent 220f751a03
commit becdcd01b4

View file

@ -633,7 +633,7 @@ void TabBar::DoStacking()
Repos();
}
void TabBar::DoUnstacking()
void TabBar::DoUnstacking()
{
stackcount = 0;
for (int i = 0; i < tabs.GetCount(); i++)
@ -670,6 +670,10 @@ void TabBar::SortStack(int stackix, int head, int tail)
void TabBar::MakeGroups()
{
for(const auto& tab : tabs)
if(FindGroup(tab.group) < 0)
NewGroup(tab.group);
groups[0].count = tabs.GetCount();
groups[0].first = 0;
groups[0].last = tabs.GetCount() - 1;