Ignore:
Timestamp:
2008-08-07T13:40:51+02:00 (16 years ago)
Author:
stoecker
Message:

reduce double draws. Closes #734

File:
1 edited

Legend:

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

    r636 r757  
    181181            orderNumber++;
    182182
    183             if (area && fillAreas) {
    184                 // hack to make direction arrows visible against filled background
    185                 if (showDirection)
    186                     drawSeg(lastN, n, w.selected ? selectedColor : untaggedColor, showDirection, width, true);
     183            if (area) {
     184                if(fillAreas)
     185                {
     186                    // hack to make direction arrows visible against filled background
     187                    if (showDirection)
     188                        drawSeg(lastN, n, w.selected ? selectedColor : untaggedColor, showDirection, width, true);
     189                }
     190                else
     191                    drawSeg(lastN, n, w.selected ? selectedColor : colour, showDirection, width, true);
    187192            } else {
    188                 if (area) {
    189                     drawSeg(lastN, n, w.selected ? selectedColor : colour, showDirection, width, true);
    190                 } else {
    191                     if (realWidth > 0 && useRealWidth && !showDirection) {
    192                         int tmpWidth = (int) (100 /  (float) (circum / realWidth));
    193                         if (tmpWidth > width) width = tmpWidth;
    194                     }
     193                if (realWidth > 0 && useRealWidth && !showDirection) {
     194                    int tmpWidth = (int) (100 /  (float) (circum / realWidth));
     195                    if (tmpWidth > width) width = tmpWidth;
    195196                }
    196             }
    197 
    198             drawSeg(lastN, n, w.selected ? selectedColor : colour, showDirection, width, dashed);
     197                drawSeg(lastN, n, w.selected ? selectedColor : colour, showDirection, width, dashed);
     198            }
    199199
    200200            if (showOrderNumber)
Note: See TracChangeset for help on using the changeset viewer.