Ignore:
Timestamp:
2009-09-09T17:44:27+02:00 (15 years ago)
Author:
petrdlouhy
Message:

Fix of wrong behavior in wireframe mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RouteLayer.java

    r17542 r17564  
    11package org.openstreetmap.josm.plugins.routes;
    22
     3import java.awt.Stroke;
    34import java.awt.Color;
    45import java.awt.Component;
     
    120121                }
    121122
     123                Stroke stroke = ((Graphics2D)g).getStroke();
     124                Color color   = g.getColor();
    122125                for (ConvertedWay way:pathBuilder.getConvertedWays()) {
    123126                        pathPainter.drawWay(way, mv, (Graphics2D) g);
    124127                }
     128                ((Graphics2D)g).setStroke(stroke);
     129                g.setColor(color);
    125130        }
    126131
Note: See TracChangeset for help on using the changeset viewer.