Changeset 9883 in josm


Ignore:
Timestamp:
2016-02-26T08:53:47+01:00 (8 years ago)
Author:
Don-vip
Message:

fix #12568 - IndexOutOfBoundsException in NativeScaleLayer$ScaleList - regression from r9818

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/NativeScaleLayer.java

    r9846 r9883  
    150150         */
    151151        public Scale getSnapScale(double scale, double ratio, boolean floor) {
     152            if (scales.isEmpty())
     153                return null;
    152154            int size = scales.size();
    153155            Scale first = scales.get(0);
Note: See TracChangeset for help on using the changeset viewer.