[PATCH] Fix crash in new profile
Miika Turkia
miika.turkia at gmail.com
Sat Jan 18 01:47:47 UTC 2014
This fixes a crash on start-up for me. Thanks.
miika
On Sat, Jan 18, 2014 at 11:35 AM, Michael Andreen <harv at ruin.nu> wrote:
> The gasPressureItem needs to be initialized to null in the constructor.
>
> Signed-off-by: Michael Andreen <harv at ruin.nu>
> ---
> qt-ui/profile/profilewidget2.cpp | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/qt-ui/profile/profilewidget2.cpp
> b/qt-ui/profile/profilewidget2.cpp
> index 201c68f..7c2e9c6 100644
> --- a/qt-ui/profile/profilewidget2.cpp
> +++ b/qt-ui/profile/profilewidget2.cpp
> @@ -35,6 +35,7 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) :
> diveProfileItem(NULL),
> cylinderPressureAxis(new DiveCartesianAxis()),
> temperatureItem(NULL),
> + gasPressureItem(NULL),
> cartesianPlane(new DiveCartesianPlane())
> {
> setScene(new QGraphicsScene());
> --
> 1.8.3.2
>
>
> _______________________________________________
> subsurface mailing list
> subsurface at hohndel.org
> http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140118/3fac4a1c/attachment.html>
More information about the subsurface
mailing list