Sorry for not attaching it, I'm attaching it here.

Regards,
Gopichand.


On Sun, Mar 2, 2014 at 4:00 PM, Gopichand Paturi
<[email protected]>wrote:

> Hello All,
> I am sending the patch for the ticket #445
>  i.e  Adding units to mean depth value under Mean depth line of the dive
> profile.
>
> I did this by enabling the bool value to true for get_depth_string()
> function.
> Please let me know if there is any feedback.
>
> Thanks&Regards,
> Gopichand.
>
From 7071942cb868a3d026dbf5fff4ba5242fe3fbcdb Mon Sep 17 00:00:00 2001
From: g1g19 <[email protected]>
Date: Sun, 2 Mar 2014 15:45:29 +0530
Subject: [PATCH 2/2] Added Units to Mean Depth Value under MeanDepthLine for ticket 445 
Signed-off-by: Gopichand Paturi <[email protected]>

---
 qt-ui/profile/diveprofileitem.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp
index fe47e7b..eb41c0a 100644
--- a/qt-ui/profile/diveprofileitem.cpp
+++ b/qt-ui/profile/diveprofileitem.cpp
@@ -614,8 +614,8 @@ void MeanDepthLine::setLine(qreal x1, qreal y1, qreal x2, qreal y2)
 
 void MeanDepthLine::setMeanDepth(int value)
 {
-	leftText->setText(get_depth_string(value, false, true));
-	rightText->setText(get_depth_string(value, false, true));
+	leftText->setText(get_depth_string(value, true, true));
+	rightText->setText(get_depth_string(value, true, true));
 	meanDepth = value;
 }
 
-- 
1.7.9.5

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

Reply via email to