Changeset 15282 in josm


Ignore:
Timestamp:
2019-08-04T22:39:11+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #18002 - ignore negative width in GpxDrawHelper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java

    r15247 r15282  
    458458                    RenderingHints.VALUE_ANTIALIAS_ON : RenderingHints.VALUE_ANTIALIAS_OFF);
    459459
    460         if (lineWidth != 0) {
     460        if (lineWidth > 0) {
    461461            g.setStroke(new BasicStroke(lineWidth, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
    462462        }
Note: See TracChangeset for help on using the changeset viewer.