Ticket #13424: patch-data-layer-remove-is-changed-flag.patch

File patch-data-layer-remove-is-changed-flag.patch, 1.2 KB (added by michael2402, 6 years ago)
  • src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    diff --git a/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java b/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
    index 23afc35..6227197 100644
    a b public class OsmDataLayer extends AbstractModifiableLayer implements Listener, S 
    121121
    122122    private boolean requiresSaveToFile;
    123123    private boolean requiresUploadToServer;
    124     private boolean isChanged = true;
    125124    private int highlightUpdateCount;
    126125
    127126    /**
    public class OsmDataLayer extends AbstractModifiableLayer implements Listener, S 
    390389     * Draw nodes last to overlap the ways they belong to.
    391390     */
    392391    @Override public void paint(final Graphics2D g, final MapView mv, Bounds box) {
    393         isChanged = false;
    394392        highlightUpdateCount = data.getHighlightUpdateCount();
    395393
    396394        boolean active = mv.getLayerManager().getActiveLayer() == this;
    public class OsmDataLayer extends AbstractModifiableLayer implements Listener, S 
    952950
    953951    @Override
    954952    public void invalidate() {
    955         isChanged = true;
    956953        super.invalidate();
    957954    }
    958955