This commit is contained in:
Alexey Kulish 2017-04-02 19:15:23 +03:00
parent 6d03f15d8b
commit dc1761de83

View file

@ -1296,7 +1296,7 @@ public class TrackSegmentFragment extends OsmAndListFragment {
} }
void updateChart(LineChart chart) { void updateChart(LineChart chart) {
if (chart != null) { if (chart != null && !chart.isEmpty()) {
if (gpxItem.chartMatrix != null) { if (gpxItem.chartMatrix != null) {
chart.getViewPortHandler().refresh(new Matrix(gpxItem.chartMatrix), chart, true); chart.getViewPortHandler().refresh(new Matrix(gpxItem.chartMatrix), chart, true);
} }