Changeset 1585 in josm for trunk


Ignore:
Timestamp:
2009-05-11T17:29:50+02:00 (16 years ago)
Author:
stoecker
Message:

fixed #2542 - patch by Gubaer - fix recursion in uplaod comment history

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/historycombobox/SuggestingJHistoryComboBox.java

    r1575 r1585  
    110110                                textField.setActionCommand("SUGGEST");
    111111                                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                                }
    113117                                textField.setSelectionStart(text.length());
    114118                                textField.setSelectionEnd(textField.getText().length());
Note: See TracChangeset for help on using the changeset viewer.