Ignore:
Timestamp:
2017-11-06T12:25:38+01:00 (6 years ago)
Author:
bastiK
Message:

fixed #15521 - backround color is not reset after disabling mappaint style with explicit background color

File:
1 edited

Legend:

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

    r12971 r13089  
    8989            cacheIdx++;
    9090            preferenceCache.clear();
     91            backgroundColorCache = null;
    9192        });
    9293    }
     
    470471    void clear() {
    471472        styleSources.clear();
    472         invalidate();
    473473    }
    474474
     
    479479    void add(StyleSource style) {
    480480        styleSources.add(style);
    481         invalidate();
    482481    }
    483482
     
    489488    boolean remove(StyleSource style) {
    490489        boolean result = styleSources.remove(style);
    491         invalidate();
    492490        return result;
    493491    }
     
    500498        styleSources.clear();
    501499        styleSources.addAll(sources);
    502         invalidate();
    503     }
    504 
    505     private void invalidate() {
    506         backgroundColorCache = null;
    507500    }
    508501
Note: See TracChangeset for help on using the changeset viewer.