Changeset 5753 in josm for trunk/src/org


Ignore:
Timestamp:
2013-03-03T13:32:38+01:00 (12 years ago)
Author:
Don-vip
Message:

see #8485 - Don't throw IllegalArgumentException with buggy projections

File:
1 edited

Legend:

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

    r5399 r5753  
    6262     */
    6363    public Pair<StyleList, Range> getStyleCacheWithRange(OsmPrimitive osm, double scale, NavigatableComponent nc) {
    64         if (osm.mappaintStyle == null || osm.mappaintCacheIdx != cacheIdx) {
     64        if (osm.mappaintStyle == null || osm.mappaintCacheIdx != cacheIdx || scale <= 0) {
    6565            osm.mappaintStyle = StyleCache.EMPTY_STYLECACHE;
    6666        } else {
Note: See TracChangeset for help on using the changeset viewer.