diff --git a/designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java b/designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java index 98c98a1846..af772dc7ec 100644 --- a/designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java +++ b/designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java @@ -792,7 +792,7 @@ public class MultiTemplateTabPane extends JComponent { //再往前补 if (minPaintIndex > 0){ - for (int i = minPaintIndex - 1; i > 0; i--) { + for (int i = minPaintIndex - 1; i >= 0; i--) { JTemplate template = openedTemplate.get(i); if (showJTemplateTab(template)) { a--;