OSDN Git Service

Imported Classpath 0.18.
[pf3gnuchains/gcc-fork.git] / libjava / classpath / java / awt / TextComponent.java
index 9edbd88..60e72fc 100644 (file)
@@ -475,7 +475,7 @@ select(int selectionStart, int selectionEnd)
   if (selectionEnd > text.length())
     selectionEnd = text.length();
 
-  if (selectionStart > getSelectionEnd())
+  if (selectionStart > selectionEnd)
     selectionStart = selectionEnd;
 
   this.selectionStart = selectionStart;