Project: SWT
Bug 19615 StyledText - example Text Editor bug in copy/paste
Reported: 2002-06-07 12:28:48 | Status: resolved fixed

build 20020602 (F2) 1 - Run TextEditor example on org.eclipse.swt.examples 2 - aaaa on it 3 - set a style (bold, blue, red, whatever you want) for the first and the last chars. (it have to be the same style for both) 4 - Copy it and paste 5 - The style you choice will be applied on the first and on the second char of the paste string. Bug, can be on Styled Text, Drag'n Drop, or in the example itself. Tested on Windows/Motif (both show the problem). More info: if you paste the text in the Micrsoft Word it is done correctly. Likely the problem is on the StyledText when it is parsing RTF to be insert in.

Files changed in fix:
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/TextEditor.java