This fixes it, Sorry - my mistake.
Dirk, can you apply?

On Fri, Jan 17, 2014 at 5:43 AM, Benjamin <[email protected]> wrote:

> I'm getting a segfault in the latest git version
> (SHA1: 09d08ddc1c13850557af28e8349bddd13ef5deec).
> The problematic bit of code appears to be in profilewidget2.cpp, line 315
>
>       if(temperatureItem){
>
>               scene()->removeItem(temperatureItem);
>
>               delete temperatureItem;
>
>       }
>
>
> The scene()->removeItem call throws the error. Is anybody else getting this, 
> or is it
>
> maybe a problem with my divelog xml file?
>
>
>
> Benjamin
>
>
> _______________________________________________
> subsurface mailing list
> [email protected]
> http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
>
>
From 30e841dad4cf06909765b340a1928cf259033a7f Mon Sep 17 00:00:00 2001
From: Tomaz Canabrava <[email protected]>
Date: Fri, 17 Jan 2014 07:59:24 -0200
Subject: [PATCH 9/9] Fixed a crash.

I forgot to initialize a variable, sorry.

Signed-off-by: Tomaz Canabrava <[email protected]>
---
 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 b7489cc..c5998fe 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -33,6 +33,7 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) :
 	depthController(new DiveRectItem()),
 	timeController(new DiveRectItem()),
 	diveProfileItem(new DiveProfileItem()),
+	temperatureItem(new DiveTemperatureItem()),
 	cartesianPlane(new DiveCartesianPlane())
 {
 	setScene(new QGraphicsScene());
-- 
1.8.5.3

_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to