From 9f8a72495be088b35bf2b2159db2191fa357ba8e Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 27 Jan 2019 12:17:32 +0000 Subject: [PATCH] TabBar: Fixed TabBar 'Move right after' issue git-svn-id: svn://ultimatepp.org/upp/trunk@12720 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/TabBar/TabBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/TabBar/TabBar.cpp b/uppsrc/TabBar/TabBar.cpp index 83170b9a7..99518fe73 100644 --- a/uppsrc/TabBar/TabBar.cpp +++ b/uppsrc/TabBar/TabBar.cpp @@ -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(),[=] {