Changeset 1504 in josm for trunk/src


Ignore:
Timestamp:
2009-03-18T17:58:24+01:00 (16 years ago)
Author:
stoecker
Message:

fix #2330 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/ColorPreference.java

    r1445 r1504  
    195195            @Override public void valueChanged(ListSelectionEvent e) {
    196196                super.valueChanged(e);
    197                 int sel = colors.getSelectedRow();
     197                int sel = getSelectedRow();
    198198                remove.setEnabled(sel > 0 && isRemoveColor(sel));
    199199                colorEdit.setEnabled(sel > 0);
Note: See TracChangeset for help on using the changeset viewer.