Ignore:
Timestamp:
2015-10-23T14:50:40+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #11262 - Images not displayed correctly in Help Browser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/WikiReader.java

    r8870 r8933  
    142142                // add a border="0" attribute to images, otherwise the internal help browser
    143143                // will render a thick  border around images inside an <a> element
     144                // remove width information to avoid distorded images (fix #11262)
    144145                b.append(line.replaceAll("<img ", "<img border=\"0\" ")
     146                         .replaceAll("width=\"(\\d+)\"", "")
    145147                         .replaceAll("<span class=\"icon\">.</span>", "")
    146148                         .replaceAll("href=\"/", "href=\"" + baseurl + '/')
Note: See TracChangeset for help on using the changeset viewer.