Changeset 341 in josm


Ignore:
Timestamp:
2007-10-05T02:25:55+02:00 (17 years ago)
Author:
framm
Message:
  • fixed SimplePaintVisitor bug introduced with speedup patch
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branch/0.5/src/org/openstreetmap/josm/data/osm/visitor/SimplePaintVisitor.java

    r340 r341  
    174174         */
    175175        protected void drawSegment(Node n1, Node n2, Color col, boolean showDirection) {
    176                 g.setColor(col);
     176
     177                if (col != currentColor) {
     178                        displaySegments(col);
     179                }
     180               
    177181                Point p1 = nc.getPoint(n1.eastNorth);
    178182                Point p2 = nc.getPoint(n2.eastNorth);
     
    182186                if (screen.contains(p1.x, p1.y, p2.x, p2.y) || screen.intersectsLine(line))
    183187                {
    184                         g.drawLine(p1.x, p1.y, p2.x, p2.y);
    185188                        currentPath.moveTo(p1.x, p1.y);
    186189                        currentPath.lineTo(p2.x, p2.y);
Note: See TracChangeset for help on using the changeset viewer.