Changeset 12175 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2017-05-15T18:13:37+02:00 (8 years ago)
Author:
michael2402
Message:

Trigger a GPX layer invalidation on SoM change.

File:
1 edited

Legend:

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

    r12171 r12175  
    194194        SystemOfMeasurement som = SystemOfMeasurement.getSystemOfMeasurement();
    195195        velocityScale.addTitle(tr("Velocity, {0}", som.speedName));
    196         if (oldSoM != null && newSoM != null && Main.isDisplayingMapView()) {
    197             Main.map.mapView.repaint();
    198         }
     196        layer.invalidate();
    199197    }
    200198
Note: See TracChangeset for help on using the changeset viewer.