diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java index d1acaab705a..0260e18ecb5 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java @@ -775,6 +775,7 @@ void createItem (CTabItem item, int index) { if (items.length == 1) { updateFolder(UPDATE_TAB_HEIGHT | REDRAW); + selectedIndex = selectedIndex + 1; } else { updateFolder(REDRAW_TABS); }