From 93fa960c99ed54411098eb457c5dd480ba58c8cb Mon Sep 17 00:00:00 2001 From: micio Date: Sun, 24 Jan 2010 23:33:00 +0000 Subject: [PATCH] Bazaar-TabBarCtrl -- Fixed small bug git-svn-id: svn://ultimatepp.org/upp/trunk@1943 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- bazaar/TabBar/TabBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazaar/TabBar/TabBar.cpp b/bazaar/TabBar/TabBar.cpp index 021291764..25c2abb70 100644 --- a/bazaar/TabBar/TabBar.cpp +++ b/bazaar/TabBar/TabBar.cpp @@ -523,7 +523,7 @@ void TabBar::DoCloseGroup(int n) // we didn't cancel globally, now we check CancelClose() // for each tab -- group gets removed ONLY if ALL of // group tabs are closed - for(int i = 0; i < tabs.GetCount(); i++) { + for(int i = tabs.GetCount() - 1; i >= 0; i--) { if(groupName == tabs[i].group && tabs.GetCount() > 1) { Value v = tabs[i].key; if(!CancelClose(v))