[PATCH] profile: don't show instantMeanDepth for printMode

Lubomir I. Ivanov neolit123 at gmail.com
Mon Jan 12 05:41:10 PST 2015


On 7 January 2015 at 21:48, Lubomir I. Ivanov <neolit123 at gmail.com> wrote:
> From: "Lubomir I. Ivanov" <neolit123 at gmail.com>
>
> Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
> ---
>  qt-ui/profile/profilewidget2.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
> index 226580a..a3e08d8 100644
> --- a/qt-ui/profile/profilewidget2.cpp
> +++ b/qt-ui/profile/profilewidget2.cpp
> @@ -610,7 +610,7 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
>
>         instantMeanDepth->vAxis = profileYAxis;
>         instantMeanDepth->hAxis = timeAxis;
> -       instantMeanDepth->setVisible(prefs.show_average_depth);
> +       instantMeanDepth->setVisible(prefs.show_average_depth && !printMode);
>         instantMeanDepth->setModel(dataModel);
>
>         dataModel->emitDataChanged();
> --
> 1.7.11.msysgit.0
>

bump,

this is a simple fix that hides the mean depth (mouse over) line when printing.
not sure if relevant.

lubomir
--


More information about the subsurface mailing list