Bug 13702 fixed: Problems with * prefix for modified files in SciNotes
[scilab.git] / scilab / modules / scinotes / src / java / org / scilab / modules / scinotes / ScilabEditorPane.java
index f95c60f..44ca5df 100644 (file)
@@ -815,7 +815,10 @@ public class ScilabEditorPane extends JEditorPane implements Highlighter.Highlig
      */
     public void updateTitle() {
         if (editor != null) {
-            editor.updateTabTitle();
+            int index = editor.getTextPaneIndex(this);
+            if (index != -1) {
+                editor.updateTabTitle(index);
+            }
         }
     }