From dc1761de83c7a7534c88f96eb11ea6ddb67d9674 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Sun, 2 Apr 2017 19:15:23 +0300 Subject: [PATCH] Fix #3614 --- OsmAnd/src/net/osmand/plus/myplaces/TrackSegmentFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/myplaces/TrackSegmentFragment.java b/OsmAnd/src/net/osmand/plus/myplaces/TrackSegmentFragment.java index 4af4de1cf4..833dc76ba6 100644 --- a/OsmAnd/src/net/osmand/plus/myplaces/TrackSegmentFragment.java +++ b/OsmAnd/src/net/osmand/plus/myplaces/TrackSegmentFragment.java @@ -1296,7 +1296,7 @@ public class TrackSegmentFragment extends OsmAndListFragment { } void updateChart(LineChart chart) { - if (chart != null) { + if (chart != null && !chart.isEmpty()) { if (gpxItem.chartMatrix != null) { chart.getViewPortHandler().refresh(new Matrix(gpxItem.chartMatrix), chart, true); }