Ignore:
Timestamp:
2008-09-18T16:50:16+02:00 (16 years ago)
Author:
stoecker
Message:

closed bug #1476 - invisible tram lines

File:
1 edited

Legend:

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

    r987 r990  
    134134                        if (tmpWidth > width) width = tmpWidth;
    135135                }
     136                if(w.selected)
     137                        color = selectedColor;
    136138
    137139                Node lastN;
     
    146148                                        {
    147149                                                if(lastN != null)
    148                                                         drawSeg(lastN, n, s.color != null ? s.color : color, false, s.getWidth(width), s.dashed);
     150                                                {
     151                                                        drawSeg(lastN, n, s.color != null  && !w.selected ? s.color : color,
     152                                                        false, s.getWidth(width), s.dashed);
     153                                                }
    149154                                                lastN = n;
    150155                                        }
     
    157162                {
    158163                        if(lastN != null)
    159                                 drawSeg(lastN, n, w.selected ? selectedColor : color, showDirection, width, dashed);
     164                                drawSeg(lastN, n, color, showDirection, width, dashed);
    160165                        lastN = n;
    161166                }
     
    171176                                        {
    172177                                                if(lastN != null)
    173                                                         drawSeg(lastN, n, s.color != null ? s.color : color, false, s.getWidth(width), s.dashed);
     178                                                {
     179                                                        drawSeg(lastN, n, s.color != null && !w.selected ? s.color : color,
     180                                                        false, s.getWidth(width), s.dashed);
     181                                                }
    174182                                                lastN = n;
    175183                                        }
Note: See TracChangeset for help on using the changeset viewer.