Ticket #17072: 17072.patch

File 17072.patch, 610 bytes (added by taylor.smock, 6 years ago)

Don't clear set image to null when the next entry is not null

  • src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java

     
    689689    public void setImage(ImageEntry entry) {
    690690        synchronized (this) {
    691691            this.entry = entry;
    692             image = null;
     692            if (entry == null) {
     693                image = null;
     694            }
    693695            errorLoading = false;
    694696        }
    695697        repaint();