Added a line to the paste method so that if text is selected, the pasted text substitute the selected text.

This commit is contained in:
amontano 2003-04-03 05:17:40 +00:00
parent 5423bc19d4
commit 341bea3c16

View file

@ -1018,6 +1018,9 @@ class RTFSelection implements ClipboardOwner, Transferable {
}
public void paste() {
/* added by AM. If we are pasting over selected text, such text
such be substituted by the text to be pasted. */
deleteCurrentSelection();
paste(getSelectionStart());
}