X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Ffunction%2Fcharts%2FCharter.java;h=842084da8b9d7b03ce14c84569e0164e1cf4c3d0;hp=0bb377fe2b1c4fe728b1020c1fe6799456ce6a66;hb=8c8868ae29b3252f02e094c02307384cf61ba667;hpb=7f5ed2be62905bd37717376dc22d09e5ea7edb4d diff --git a/tim/prune/function/charts/Charter.java b/tim/prune/function/charts/Charter.java index 0bb377f..842084d 100644 --- a/tim/prune/function/charts/Charter.java +++ b/tim/prune/function/charts/Charter.java @@ -517,6 +517,7 @@ public class Charter extends GenericFunction { // Calculate speeds using the same formula as the profile chart SpeedData speeds = new SpeedData(inTrack); + speeds.init(Config.getUnitSet()); final int numPoints = inTrack.getNumPoints(); ChartSeries values = new ChartSeries(numPoints); @@ -540,6 +541,7 @@ public class Charter extends GenericFunction { // Calculate speeds using the same formula as the profile chart VerticalSpeedData speeds = new VerticalSpeedData(inTrack); + speeds.init(Config.getUnitSet()); final int numPoints = inTrack.getNumPoints(); ChartSeries values = new ChartSeries(numPoints);