From 9353e7adcb6c6f6713d022fc347736809db5367d Mon Sep 17 00:00:00 2001
From: Joakim Bygdell <j.bygdell@gmail.com>
Date: Fri, 13 Mar 2015 19:21:01 +0100
Subject: [PATCH] Conditional tests should return both true and false values.

Signed-off-by: Joakim Bygdell <j.bygdell@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 398934c..3baa20a 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -1392,7 +1392,7 @@ void ProfileWidget2::changeGas()
 	int seconds = timeAxis->valueAt(scenePos);
 
 	// no gas changes before the dive starts
-	seconds = seconds > 0 ?: 0;
+	seconds = seconds > 0 ? seconds : 0;
 
 	// if there is a gas change at this time stamp, remove it before adding the new one
 	struct event *gasChangeEvent = current_dc->events;
-- 
1.9.5 (Apple Git-50.3)

