Index: CloneableEditor.java =================================================================== RCS file: /cvs/openide/src/org/openide/text/CloneableEditor.java,v retrieving revision 1.68 diff -c -r1.68 CloneableEditor.java *** CloneableEditor.java 5 Feb 2004 10:57:03 -0000 1.68 --- CloneableEditor.java 12 Feb 2004 15:23:39 -0000 *************** *** 173,179 **** pane.setEditorKit (support.kit ()); ! Document doc = support.getDocumentHack (); pane.setDocument (doc); --- 173,187 ---- pane.setEditorKit (support.kit ()); ! Document doc; ! try { ! // Issue #40026 - assigning loaded document instead of original getDocumentHack() ! doc = support.openDocument(); ! } catch (IOException e) { ! // Notify the exception and assign empty doc ! ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, e); ! doc = support.createStyledDocument(pane.getEditorKit()); ! } pane.setDocument (doc);