profile: don't plot event-icons outside of range

Do this by extending the isInteresting() function for
dive event items.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-10-09 15:05:27 +02:00 committed by Dirk Hohndel
parent a496ab016b
commit 1a429d9b17
3 changed files with 11 additions and 3 deletions

View file

@ -487,7 +487,7 @@ void ProfileScene::plotDive(const struct dive *dIn, int dcIn, DivePlannerPointsM
continue;
}
}
if (DiveEventItem::isInteresting(d, currentdc, event, plotInfo)) {
if (DiveEventItem::isInteresting(d, currentdc, event, plotInfo, firstSecond, lastSecond)) {
auto item = new DiveEventItem(d, event, lastgasmix, plotInfo,
timeAxis, profileYAxis, animSpeed, *pixmaps);
item->setZValue(2);