Changeset 862 in josm for trunk/src


Ignore:
Timestamp:
2008-08-24T19:13:56+02:00 (16 years ago)
Author:
stoecker
Message:

fixed line style problem with segment numbers

Location:
trunk/src/org/openstreetmap/josm/data/osm/visitor
Files:
2 edited

Legend:

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

    r860 r862  
    265265
    266266        protected void displaySegments(Color newColor, int newWidth, boolean newDash) {
    267 
    268267                if (currentPath != null) {
    269268                        Graphics2D g2d = (Graphics2D)g;
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/SimplePaintVisitor.java

    r860 r862  
    129129                        if (!osm.deleted && !osm.selected && osm.tagged)
    130130                                osm.visit(this);
    131                 displaySegments(null);
     131                displaySegments();
    132132
    133133                for (final OsmPrimitive osm : data.ways)
    134134                        if (!osm.deleted && !osm.selected && !osm.tagged)
    135135                                osm.visit(this);
    136                 displaySegments(null);
     136                displaySegments();
    137137
    138138                for (final OsmPrimitive osm : data.getSelected())
    139139                        if (!osm.deleted)
    140140                                osm.visit(this);
    141                 displaySegments(null);
     141                displaySegments();
    142142
    143143                for (final OsmPrimitive osm : data.nodes)
     
    150150                                if (!osm.deleted)
    151151                                        visitVirtual((Way)osm);
    152                         displaySegments(null);
     152                        displaySegments();
    153153                }
    154154        }
     
    297297                        }
    298298
    299                         displaySegments(currentColor); // draw nodes on top!
     299                        displaySegments(); // draw nodes on top!
    300300                        Color c = g.getColor();
    301301                        g.setColor(backgroundColor);
     
    331331         */
    332332        protected void drawSegment(Point p1, Point p2, Color col, boolean showDirection) {
    333 
    334333                if (col != currentColor) displaySegments(col);
    335334
     
    363362        }
    364363
     364        protected void displaySegments() {
     365                displaySegments(null);
     366        }
    365367        protected void displaySegments(Color newColor) {
    366368                if (currentPath != null) {
Note: See TracChangeset for help on using the changeset viewer.