Changeset 4865 in josm


Ignore:
Timestamp:
Jan 24, 2012 1:18:56 PM (16 months 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.