Changeset 7619 in josm for trunk


Ignore:
Timestamp:
2014-10-14T00:51:14+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #10628 - display first image when adding first new geoimage layer

File:
1 edited

Legend:

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

    r7444 r7619  
    364364    @Override
    365365    public void activeLayerChange(Layer oldLayer, Layer newLayer) {
    366         // Ignored
     366        if (currentLayer == null && newLayer instanceof GeoImageLayer) {
     367            ((GeoImageLayer)newLayer).showFirstPhoto();
     368        }
    367369    }
    368370
     
    378380            showImage(null, null);
    379381        }
     382        // Check buttons state in case of layer merging
     383        if (currentLayer != null && oldLayer instanceof GeoImageLayer) {
     384            currentLayer.checkPreviousNextButtons();
     385        }
    380386    }
    381387}
Note: See TracChangeset for help on using the changeset viewer.