Ignore:
Timestamp:
2018-11-02T21:45:21+01:00 (7 years ago)
Author:
Don-vip
Message:

see #16937 - Support user logins with space character on Java 8

File:
1 edited

Legend:

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

    r14331 r14404  
    11661166                try {
    11671167                    URI uri = getSvgUniverse().loadSVG(path);
     1168                    if (uri == null && "jar".equals(path.getProtocol())) {
     1169                        URL betterPath = Utils.betterJarUrl(path);
     1170                        if (betterPath != null) {
     1171                            uri = getSvgUniverse().loadSVG(betterPath);
     1172                        }
     1173                    }
    11681174                    svg = getSvgUniverse().getDiagram(uri);
    1169                 } catch (SecurityException e) {
     1175                } catch (SecurityException | IOException e) {
    11701176                    Logging.log(Logging.LEVEL_WARN, "Unable to read SVG", e);
    11711177                }
Note: See TracChangeset for help on using the changeset viewer.