Changeset 3301 in josm for trunk/src/org


Ignore:
Timestamp:
2010-06-03T13:29:08+02:00 (14 years ago)
Author:
bastiK
Message:

draw dashes of disabled ways in inactive color

File:
1 edited

Legend:

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

    r3291 r3301  
    153153
    154154        Color myColor = color;
     155        Color myDashedColor = dashedColor;
    155156        int myWidth = getWidth();
    156157
     
    183184        } else if(w.isDisabled()) {
    184185            myColor = paintSettings.getInactiveColor();
     186            myDashedColor = paintSettings.getInactiveColor();
    185187        }
    186188
     
    190192                if(!s.over) {
    191193                    painter.drawWay(w, (s.color == null || selected) ? myColor: s.color, s.getWidth(myWidth),
    192                             s.getDashed(), s.dashedColor, false, false, false);
     194                            s.getDashed(),
     195                            w.isDisabled() ? paintSettings.getInactiveColor() : s.dashedColor,
     196                            false, false, false);
    193197                }
    194198            }
     
    196200
    197201        /* draw the way */
    198         painter.drawWay(w, myColor, myWidth, dashed, dashedColor, showDirection, selected ? false : reversedDirection, showOnlyHeadArrowOnly);
     202        painter.drawWay(w, myColor, myWidth, dashed, myDashedColor, showDirection, selected ? false : reversedDirection, showOnlyHeadArrowOnly);
    199203
    200204        /* draw overlays above the way */
Note: See TracChangeset for help on using the changeset viewer.