Ignore:
Timestamp:
2012-04-29T22:23:26+02:00 (12 years ago)
Author:
bastiK
Message:

applied #7624 - Allow MapCSS to style right and left side casings differently (patch by cmuelle8)

File:
1 edited

Legend:

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

    r5054 r5206  
    311311                addIfNotNull(sl, LinePatternElemStyle.create(env));
    312312                addIfNotNull(sl, LineElemStyle.createLine(env));
     313                addIfNotNull(sl, LineElemStyle.createLeftCasing(env));
     314                addIfNotNull(sl, LineElemStyle.createRightCasing(env));
    313315                addIfNotNull(sl, LineElemStyle.createCasing(env));
    314316                addIfNotNull(sl, LineTextElemStyle.create(env));
     
    347349     */
    348350    private boolean isDefaultNodes() {
    349         if (defaultNodesIdx == cacheIdx) {
     351        if (defaultNodesIdx == cacheIdx)
    350352            return defaultNodes;
    351         }
    352353        defaultNodes = fromCanvas("default-points", true, Boolean.class);
    353354        defaultNodesIdx = cacheIdx;
     
    359360     */
    360361    private boolean isDefaultLines() {
    361         if (defaultLinesIdx == cacheIdx) {
     362        if (defaultLinesIdx == cacheIdx)
    362363            return defaultLines;
    363         }
    364364        defaultLines = fromCanvas("default-lines", true, Boolean.class);
    365365        defaultLinesIdx = cacheIdx;
     
    420420     */
    421421    public static AreaElemStyle getAreaElemStyle(OsmPrimitive p, boolean pretendWayIsClosed) {
    422         if (MapPaintStyles.getStyles() == null) {
     422        if (MapPaintStyles.getStyles() == null)
    423423            return null;
    424         }
    425424        for (ElemStyle s : MapPaintStyles.getStyles().generateStyles(p, 1.0, null, pretendWayIsClosed).a) {
    426             if (s instanceof AreaElemStyle) {
     425            if (s instanceof AreaElemStyle)
    427426                return (AreaElemStyle) s;
    428             }
    429427        }
    430428        return null;
Note: See TracChangeset for help on using the changeset viewer.