mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
A better segment copy
This commit is contained in:
parent
2605e1abeb
commit
1fb6aad50f
@ -95,9 +95,11 @@ Track::Track(const TrackData &data) : _pause(0)
|
|||||||
if (_useSegments)
|
if (_useSegments)
|
||||||
_data = data;
|
_data = data;
|
||||||
else {
|
else {
|
||||||
_data.append(SegmentData());
|
if (!data.isEmpty()) {
|
||||||
for (int i = 0; i < data.size(); i++)
|
_data.append(data.first());
|
||||||
_data[0] << data.at(i);
|
for (int i = 1; i < data.size(); i++)
|
||||||
|
_data.first() << data.at(i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < _data.size(); i++) {
|
for (int i = 0; i < _data.size(); i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user