Merge pull request #3482 from njohnston/recording_track_colour_fix
Display all segments of the current recording track in the same colour
This commit is contained in:
commit
e42fba2114
1 changed files with 2 additions and 1 deletions
|
@ -417,13 +417,14 @@ public class SavingTrackHelper extends SQLiteOpenHelper {
|
|||
|
||||
private void addTrackPoint(WptPt pt, boolean newSegment, long time) {
|
||||
List<TrkSegment> points = currentTrack.getModifiablePointsToDisplay();
|
||||
Track track = currentTrack.getGpxFile().tracks.get(0);
|
||||
Track track = currentTrack.getModifiableGpxFile().tracks.get(0);
|
||||
assert track.segments.size() == points.size();
|
||||
if (points.size() == 0 || newSegment) {
|
||||
points.add(new TrkSegment());
|
||||
}
|
||||
if(track.segments.size() == 0 || newSegment) {
|
||||
track.segments.add(new TrkSegment());
|
||||
currentTrack.processPoints();
|
||||
}
|
||||
if (pt != null) {
|
||||
int ind = points.size() - 1;
|
||||
|
|
Loading…
Reference in a new issue