diff --git a/src/igcparser.cpp b/src/igcparser.cpp index 0aba808e..d749de84 100644 --- a/src/igcparser.cpp +++ b/src/igcparser.cpp @@ -149,7 +149,7 @@ bool IGCParser::readBRecord(const char *line, int len) if (time < _time) - _date.addDays(1); + _date = _date.addDays(1); _time = time; Trackpoint t(Coordinates(lon, lat));