Changeset 12157 in josm for trunk/test


Ignore:
Timestamp:
2017-05-15T14:41:08+02:00 (2 years ago)
Author:
michael2402
Message:

See #13124: Refresh the heat map on every invalidation (visible tacks changed, ...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelperTest.java

    r12156 r12157  
    1515import org.openstreetmap.josm.TestUtils;
    1616import org.openstreetmap.josm.data.gpx.GpxData;
     17import org.openstreetmap.josm.gui.layer.GpxLayer;
    1718import org.openstreetmap.josm.io.GpxReaderTest;
    1819import org.openstreetmap.josm.tools.ColorHelper;
     
    123124    static List<String> calculateColors(String fileName, String layerName, int n) throws IOException, SAXException {
    124125        final GpxData data = GpxReaderTest.parseGpxData(fileName);
    125         final GpxDrawHelper gdh = new GpxDrawHelper(data);
     126        final GpxLayer layer = new GpxLayer(data);
     127        final GpxDrawHelper gdh = new GpxDrawHelper(layer);
    126128        gdh.readPreferences(layerName);
    127129        gdh.calculateColors();
Note: See TracChangeset for help on using the changeset viewer.