Index: gtk2_ardour/group_tabs.cc
===================================================================
--- gtk2_ardour/group_tabs.cc	(revision 9983)
+++ gtk2_ardour/group_tabs.cc	(working copy)
@@ -259,6 +259,7 @@
 	while (i != _tabs.end()) {
 
 		if (i->from > c) {
+			*next = i;
 			break;
 		}
 
@@ -275,14 +276,6 @@
 		++i;
 	}
 
-	if (i != _tabs.end()) {
-		*next = i;
-
-		if (under) {
-			(*next)++;
-		}
-	}
-
 	return under;
 }
 
