Ignore:
Timestamp:
2019-12-21T15:33:07+01:00 (4 years ago)
Author:
Don-vip
Message:

fix #18444 - Changed default to "all" and also revert draw.rawgps.lines with the next update for everyone (patch by Bjoeni)

File:
1 edited

Legend:

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

    r15586 r15606  
    310310
    311311        int l = optInt("lines");
    312         if (!data.fromServer) {
     312        // -1 = global (default: all)
     313        //  0 = none
     314        //  1 = local
     315        //  2 = all
     316        if (!data.fromServer) { //local settings apply
    313317            maxLineLength = optInt("lines.max-length.local");
    314             lines = l != 0; //draw for -1 (default), 1 (local) and 2 (all)
     318            lines = l != 0; // don't draw if "none"
    315319        } else {
    316320            maxLineLength = optInt("lines.max-length");
    317             lines = l == 2; //draw only for 2 (all)
     321            lines = l != 0 && l != 1; //don't draw if "none" or "local only"
    318322        }
    319323        large = optBool("points.large");
Note: See TracChangeset for help on using the changeset viewer.