Ignore:
Timestamp:
2018-02-12T23:19:49+01:00 (6 years ago)
Author:
bastiK
Message:

fixed #11607 - RangeViolatedError: the new range must be within a single subrange

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/DataSet.java

    r13309 r13420  
    200200    private final ConflictCollection conflicts = new ConflictCollection();
    201201
     202    private short mappaintCacheIdx = 1;
     203
    202204    /**
    203205     * Constructs a new {@code DataSet}.
     
    13801382        return null;
    13811383    }
     1384
     1385    /**
     1386     * Returns mappaint cache index for this DataSet.
     1387     *
     1388     * If the {@link OsmPrimitive#mappaintCacheIdx} is not equal to the DataSet mappaint
     1389     * cache index, this means the cache for that primitive is out of date.
     1390     * @return mappaint cache index
     1391     * @since 13420
     1392     */
     1393    public short getMappaintCacheIndex() {
     1394        return mappaintCacheIdx;
     1395    }
     1396
     1397    /**
     1398     * Clear the mappaint cache for this DataSet.
     1399     * @since 13420
     1400     */
     1401    public void clearMappaintCache() {
     1402        mappaintCacheIdx++;
     1403    }
    13821404}
Note: See TracChangeset for help on using the changeset viewer.