|
@@ -340,7 +340,7 @@ public class MyCanvas extends JPanel implements MouseListener, MouseMotionListen
|
|
|
// Remove UpperNodeTab if UpperNode deleted
|
|
|
if (cps instanceof CpsUpperNode) {
|
|
|
JTabbedPane tabbedPane = (JTabbedPane) getParent().getParent().getParent();
|
|
|
- for (int i = 3; i < tabbedPane.getTabCount(); i++) {
|
|
|
+ for (int i = 4; i < tabbedPane.getTabCount(); i++) {
|
|
|
if (((UpperNodeCanvas) ((JScrollPane) tabbedPane.getComponentAt(i)).getViewport()
|
|
|
.getComponent(0)).upperNode.getId() == cps.getId()) {
|
|
|
tabbedPane.remove(i);
|