Changeset 2526 in josm


Ignore:
Timestamp:
2009-11-28T08:15:05+01:00 (12 years ago)
Author:
bastiK
Message:

draw turn restrictions in gray if when the layer is inactive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java

    r2518 r2526  
    800800        //if(restrictionDebug)
    801801        //    System.out.println("Deg1 " + fromAngleDeg + " Deg2 " + (fromAngleDeg + 180) + " Icon " + iconAngle);
    802         ImageIcon rotatedIcon = ImageProvider.createRotatedImage(null /*icon2*/, nodeStyle.icon, iconAngle);
     802        ImageIcon rotatedIcon = ImageProvider.createRotatedImage(null /*icon2*/, inactive || r.isDisabled() ?
     803                                                                                    nodeStyle.getDisabledIcon() :
     804                                                                                    nodeStyle.icon, iconAngle);
    803805
    804806        /* scale down icon to 16*16 pixels */
Note: See TracChangeset for help on using the changeset viewer.