Changeset 16942 in josm for trunk


Ignore:
Timestamp:
2020-08-26T23:18:51+02:00 (4 years ago)
Author:
simon04
Message:

see #19716 - ChooseTrackVisibilityAction: do not report unspecified timespan as 1970-01-01

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java

    r16864 r16942  
    724724                .mapToLong(WayPoint::getTimeInMillis)
    725725                .summaryStatistics();
    726         return statistics.getCount() == 0
     726        return statistics.getCount() == 0 || (statistics.getMin() == 0 && statistics.getMax() == 0)
    727727                ? null
    728728                : new Date[]{new Date(statistics.getMin()), new Date(statistics.getMax())};
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/ChooseTrackVisibilityAction.java

    r16941 r16942  
    325325            if (c instanceof JComponent) {
    326326                JComponent jc = (JComponent) c;
    327                 jc.setToolTipText(getValueAt(row, col).toString());
     327                jc.setToolTipText(String.valueOf(getValueAt(row, col)));
    328328                if (content.length > row
    329329                        && content[row].length > 5
Note: See TracChangeset for help on using the changeset viewer.