Changeset 13800 in josm


Ignore:
Timestamp:
2018-05-21T04:02:08+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #16192 - sort map paint style settings by label

Location:
trunk/src/org/openstreetmap/josm/gui/mappaint
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSetting.java

    r12846 r13800  
    3636     * A style setting for boolean value (yes / no).
    3737     */
    38     class BooleanStyleSetting implements StyleSetting {
     38    class BooleanStyleSetting implements StyleSetting, Comparable<BooleanStyleSetting> {
    3939        public final StyleSource parentStyle;
    4040        public final String prefKey;
     
    8282            }
    8383        }
     84
     85        @Override
     86        public int compareTo(BooleanStyleSetting o) {
     87            return label.compareTo(o.label);
     88        }
    8489    }
    8590}
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java

    r13664 r13800  
    606606            }
    607607        }
     608        settings.sort(null);
    608609    }
    609610
Note: See TracChangeset for help on using the changeset viewer.