Changeset a19f9c2 in subsurface for qt-models


Ignore:
Timestamp:
Apr 16, 2017, 7:40:45 AM (6 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
d661189
Parents:
74a5511
git-author:
Stefan Fuchs <sfuchs@…> (04/16/17 02:24:41)
git-committer:
Dirk Hohndel <dirk@…> (04/16/17 07:40:45)
Message:

Last added dive planner point for correct lenght not always added

Don't add the last stop with addstop for correcting the lenght
of the dive if planner generated points can be removed when replanning.
Otherwise this will not be deleted when replanning a dive.

Signed-off-by: Stefan Fuchs <sfuchs@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qt-models/diveplannermodel.cpp

    r1b744c76 ra19f9c2  
    120120        }
    121121        // make sure we get the last point right so the duration is correct
    122         addStop(0, d->dc.duration.seconds,cylinderid, 0, true);
     122        if (!hasMarkedSamples) addStop(0, d->dc.duration.seconds,cylinderid, 0, true);
    123123        recalc = oldRec;
    124124        emitDataChanged();
Note: See TracChangeset for help on using the changeset viewer.