diff options
Diffstat (limited to 'java/awt/TextComponent.java')
-rw-r--r-- | java/awt/TextComponent.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/awt/TextComponent.java b/java/awt/TextComponent.java index 4fc62a951..8fdd94139 100644 --- a/java/awt/TextComponent.java +++ b/java/awt/TextComponent.java @@ -391,7 +391,9 @@ public class TextComponent extends Component */ public synchronized void setSelectionStart(int selectionStart) { - select(selectionStart, getSelectionEnd()); + select(selectionStart, + (getSelectionEnd() < selectionStart) + ? selectionStart : getSelectionEnd()); } /** |