Changeset 33332 in osm


Ignore:
Timestamp:
2017-05-25T19:00:53+02:00 (7 years ago)
Author:
donvip
Message:

see #josm14832 - display the URL as attribution is text is missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/AttributionSupport.java

    r32030 r33332  
    102102        g.setFont(ATTR_FONT);
    103103        String attributionText = source.getAttributionText(zoom, topLeft, bottomRight);
     104        if (attributionText == null) {
     105            // In case attribution text has been forgotte, display URL
     106            attributionText = source.getAttributionLinkURL();
     107        }
    104108        if (attributionText != null) {
    105109            Rectangle2D stringBounds = g.getFontMetrics().getStringBounds(attributionText, g);
Note: See TracChangeset for help on using the changeset viewer.