Changeset 7804 in josm


Ignore:
Timestamp:
2014-12-14T16:20:17+01:00 (9 years ago)
Author:
bastiK
Message:

see #10836 - synchronize in case of multithreading issue in svgsalamander

File:
1 edited

Legend:

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

    r7803 r7804  
    7373
    7474import com.kitfox.svg.SVGDiagram;
    75 import com.kitfox.svg.SVGException;
    7675import com.kitfox.svg.SVGUniverse;
    7776
     
    11791178        g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    11801179        try {
    1181             svg.render(g);
     1180            synchronized (getSvgUniverse()) {
     1181                svg.render(g);
     1182            }
    11821183        } catch (Exception ex) {
    11831184            Main.error("Unable to load svg: {0}", ex.getMessage());
Note: See TracChangeset for help on using the changeset viewer.