Merge branch 'master' of git@git.scilab.org:scilab
Allan SIMON [Wed, 16 Sep 2009 15:32:22 +0000 (17:32 +0200)]
1  2 
scilab/modules/xpad/src/java/org/scilab/modules/xpad/Xpad.java

@@@ -501,13 -466,9 +501,13 @@@ public class Xpad extends SwingScilabTa
                                ((ScilabStyleDocument) textPane.getStyledDocument()).colorize();
                        }
                        if (((ScilabStyleDocument) textPane.getStyledDocument()).getAutoIndent()) {
-                               ((ScilabStyleDocument) textPane.getStyledDocument()).indent();
+                               ((ScilabStyleDocument) textPane.getStyledDocument()).indent(0,0);
                        }
                        ((ScilabStyleDocument) textPane.getStyledDocument()).enableUpdaters();
 +                      
 +                      getTabPane().setTitleAt(getTabPane().getSelectedIndex() , f.getName());
 +                      ((ScilabStyleDocument) getTextPane().getStyledDocument()).setContentModified(false);
 +                      
                } catch (IOException ioex) {
  
                        int choice = JOptionPane.showConfirmDialog(this, "This file doesn't exist\n Do you want to create it?");