Changeset 10879 in josm


Ignore:
Timestamp:
2016-08-23T20:34:14+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13424 - Remove unneccessary isChanged flag (patch by michael2402, modified) - gsoc-core

File:
1 edited

Legend:

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

    r10853 r10879  
    122122    private boolean requiresSaveToFile;
    123123    private boolean requiresUploadToServer;
    124     private boolean isChanged = true;
    125124    private int highlightUpdateCount;
    126125
     
    391390     */
    392391    @Override public void paint(final Graphics2D g, final MapView mv, Bounds box) {
    393         isChanged = false;
    394392        highlightUpdateCount = data.getHighlightUpdateCount();
    395393
     
    895893    @Override
    896894    public boolean isChanged() {
    897         return isChanged || highlightUpdateCount != data.getHighlightUpdateCount();
     895        return highlightUpdateCount != data.getHighlightUpdateCount();
    898896    }
    899897
     
    949947    public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) {
    950948        invalidate();
    951     }
    952 
    953     @Override
    954     public void invalidate() {
    955         isChanged = true;
    956         super.invalidate();
    957949    }
    958950
Note: See TracChangeset for help on using the changeset viewer.