Changeset 15241 in josm for trunk


Ignore:
Timestamp:
2019-07-11T22:12:38+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #17918 - don't include ImageryInfo field names in imagery search

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java

    r15158 r15241  
    722722    public String toString() {
    723723        // Used in imagery preferences filtering, so must be efficient
    724         return new StringBuilder("ImageryInfo{")
    725                 .append("name='").append(name).append('\'')
    726                 .append(", countryCode='").append(countryCode).append('\'')
     724        return new StringBuilder(name)
     725                .append('[').append(countryCode)
    727726                // appending the localized country in toString() allows us to filter imagery preferences table with it!
    728                 .append(", localizedCountry='").append(getLocalizedCountry(countryCode)).append('\'')
    729                 .append(", url='").append(url).append('\'')
    730                 .append(", imageryType=").append(imageryType)
    731                 .append('}').toString();
     727                .append("] ('").append(getLocalizedCountry(countryCode)).append(')')
     728                .append(" - ").append(url)
     729                .append(" - ").append(imageryType)
     730                .toString();
    732731    }
    733732
Note: See TracChangeset for help on using the changeset viewer.