Ignore:
Timestamp:
2010-01-16T19:51:23+01:00 (12 years ago)
Author:
jttt
Message:

Better gpx layer tooltip, don't add gpx layer if gpx file is empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/GpxImporter.java

    r2851 r2867  
    5656            Runnable task = new Runnable() {
    5757                public void run() {
    58                     if (!r.data.tracks.isEmpty() || ! r.data.routes.isEmpty()) {
     58                    if (r.data.hasRoutePoints() || r.data.hasTrackPoints()) {
    5959                        Main.main.addLayer(gpxLayer);
    6060                    }
Note: See TracChangeset for help on using the changeset viewer.