Ticket #2542: SuggestingJHistoryComboBox.patch
| File SuggestingJHistoryComboBox.patch, 878 bytes (added by , 17 years ago) |
|---|
-
src/org/openstreetmap/josm/gui/historycombobox/SuggestingJHistoryComboBox.java
109 109 if (suggestion.startsWith(text)) { 110 110 textField.setActionCommand("SUGGEST"); 111 111 doc.setConsumeEvents(true); 112 textField.setText(suggestion); 112 // avoid unbound recursion via setText() -> replace() -> 113 // suggest() -> setText() ... in some environments 114 if (! text.equals(suggestion)) { 115 textField.setText(suggestion); 116 } 113 117 textField.setSelectionStart(text.length()); 114 118 textField.setSelectionEnd(textField.getText().length()); 115 119 doc.setConsumeEvents(false);
