Changeset 4865 in josm for trunk/src/org


Ignore:
Timestamp:
2012-01-24T13:18:56+01:00 (13 years ago)
Author:
bastiK
Message:

fixed #7209 - do not replace unknown images by dummy image; quote properly

File:
1 edited

Legend:

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

    r4863 r4865  
    143143            String im = m.group(1);
    144144            URL u = getClass().getResource(im);
    145             if (u == null) {
    146                 u = getClass().getResource("/images/data/node.png");
     145            if (u != null) {
     146                m.appendReplacement(sb, Matcher.quoteReplacement("src=\"" + u.toString() + "\""));
    147147            }
    148             m.appendReplacement(sb, "src=\"" + u.toString() + "\"");
    149148        }
    150149        m.appendTail(sb);
Note: See TracChangeset for help on using the changeset viewer.