Ignore:
Timestamp:
2015-03-12T23:37:24+01:00 (9 years ago)
Author:
bastiK
Message:

see #11227 - MapCSS: rendering slow because of frequent preferences lookup

Location:
trunk/src/org/openstreetmap/josm/gui/mappaint
Files:
2 edited

Legend:

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

    r7596 r8133  
    342342                    addIfNotNull(sl, BoxTextElemStyle.create(env, nodeStyle.getBoxProvider()));
    343343                } else {
    344                     addIfNotNull(sl, BoxTextElemStyle.create(env, NodeElemStyle.SIMPLE_NODE_ELEMSTYLE.getBoxProvider()));
     344                    addIfNotNull(sl, BoxTextElemStyle.create(env, NodeElemStyle.SIMPLE_NODE_ELEMSTYLE_BOXPROVIDER));
    345345                }
    346346            } else if (osm instanceof Relation) {
  • trunk/src/org/openstreetmap/josm/gui/mappaint/NodeElemStyle.java

    r8085 r8133  
    8787
    8888    public static final NodeElemStyle SIMPLE_NODE_ELEMSTYLE;
     89    public static final BoxProvider SIMPLE_NODE_ELEMSTYLE_BOXPROVIDER;
    8990    static {
    9091        MultiCascade mc = new MultiCascade();
     
    9293        SIMPLE_NODE_ELEMSTYLE = create(new Environment(null, mc, "default", null), 4.1f, true);
    9394        if (SIMPLE_NODE_ELEMSTYLE == null) throw new AssertionError();
     95        SIMPLE_NODE_ELEMSTYLE_BOXPROVIDER = SIMPLE_NODE_ELEMSTYLE.getBoxProvider();
    9496    }
    9597
Note: See TracChangeset for help on using the changeset viewer.