From c2b2d690f63d5dc92471a331ba4f61a0eb7cafdb Mon Sep 17 00:00:00 2001 From: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> Date: Sat, 2 Feb 2019 21:31:12 +0100 Subject: Profile: plot pictures of correct dive The pictures of the current dive were plotted on the profile. In principle OK, as this is what the user is shown. Only on export this results in all profiles having the same pictures. Therefore, pass a dive argument to the picture-plotting function. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> --- profile-widget/profilewidget2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'profile-widget/profilewidget2.h') diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h index 300e46e39..dc02ef55c 100644 --- a/profile-widget/profilewidget2.h +++ b/profile-widget/profilewidget2.h @@ -173,7 +173,7 @@ private: /*methods*/ void createPPGas(PartialPressureGasItem *item, int verticalColumn, color_index_t color, color_index_t colorAlert, const double *thresholdSettingsMin, const double *thresholdSettingsMax); void clearPictures(); - void plotPicturesInternal(bool synchronous); + void plotPicturesInternal(struct dive *d, bool synchronous); private: DivePlotDataModel *dataModel; int zoomLevel; -- cgit v1.2.3-70-g09d2