Ignore:
Timestamp:
2019-12-07T16:38:26+01:00 (4 years ago)
Author:
GerdP
Message:

fix #18389: GPX track with color black is invisible (Patch by Bjoeni)
Show popup that track is not visible because color matches backgroud color. This shows a popup only if

  • background color of all tracks in the file equals background color and
  • no imagery layer is currently visible

"I noticed that Garmin actually uses gpxx:TrackExtension instead of gpxx:TrackExtensions, so the abbreviations don't work and files are sometimes not written according to the standard."

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxTrackTest.java

    r15496 r15560  
    4848        trk.invalidate();
    4949        assertNull(trk.getColor());
    50         ext.add("gpxx", "TrackExtensions").getExtensions().add("gpxx", "DisplayColor", "Blue");
     50        ext.add("gpxx", "TrackExtension").getExtensions().add("gpxx", "DisplayColor", "Blue");
    5151        trk.invalidate();
    5252        assertEquals(trk.getColor(), Color.BLUE);
Note: See TracChangeset for help on using the changeset viewer.