Ignore:
Timestamp:
2021-01-02T16:14:00+01:00 (3 years ago)
Author:
GerdP
Message:

fix #20253: Weird area shading at a corner

  • use closePath() instead of lineTo(first) (Patch by michael2402)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/draw/MapViewPath.java

    r12505 r17432  
    164164    private void appendWay(Iterable<? extends ILatLon> nodes, boolean connect, boolean close) {
    165165        boolean useMoveTo = !connect;
    166         ILatLon first = null;
    167166        for (ILatLon n : nodes) {
    168167            if (useMoveTo) {
     
    171170                lineTo(n);
    172171            }
    173             if (close && first == null) {
    174                 first = n;
    175             }
    176172            useMoveTo = false;
    177173        }
    178         if (first != null) {
    179             lineTo(first);
     174        if (close) {
     175            closePath();
    180176        }
    181177    }
Note: See TracChangeset for help on using the changeset viewer.