Ignore:
Timestamp:
2015-12-28T14:52:29+01:00 (8 years ago)
Author:
simon04
Message:

fix #11918 - Make obtain sources from current layers add only visible imagery sources

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/BasicUploadSettingsPanel.java

    r8510 r9198  
    3232import org.openstreetmap.josm.tools.CheckParameterUtil;
    3333import org.openstreetmap.josm.tools.GBC;
     34import org.openstreetmap.josm.tools.Utils;
    3435
    3536/**
     
    7374            public void hyperlinkUpdate(HyperlinkEvent e) {
    7475                if (HyperlinkEvent.EventType.ACTIVATED.equals(e.getEventType())) {
    75                     hcbUploadSource.setText(Main.map.mapView.getLayerInformationForSourceTag());
     76                    final String source = Main.map.mapView.getLayerInformationForSourceTag();
     77                    hcbUploadSource.setText(Utils.shortenString(source, Changeset.MAX_CHANGESET_TAG_LENGTH));
    7678                    // Fix #9965
    7779                    changesetSourceModel.setComment(hcbUploadSource.getText());
Note: See TracChangeset for help on using the changeset viewer.