From 8eb25f67003d9f513094edf2b2f8e0224854e905 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sat, 31 Jan 2015 19:36:35 +0200 Subject: DiveMeanDepthItem: fix bad translated depth units probably just a typo; taking the value of a (char *) will return the first char (or byte). Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- qt-ui/profile/diveprofileitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui') diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp index 3f64fd47a..3bc79832e 100644 --- a/qt-ui/profile/diveprofileitem.cpp +++ b/qt-ui/profile/diveprofileitem.cpp @@ -622,7 +622,7 @@ void DiveMeanDepthItem::createTextItem() { text->setBrush(getColor(TEMP_TEXT)); text->setPos(QPointF(hAxis->posAtValue(sec) + 1, vAxis->posAtValue(lastRunningSum))); text->setScale(0.8); // need to call this BEFORE setText() - text->setText(QString("%1%2").arg(d, 0, 'f', 1).arg(*unitText)); + text->setText(QString("%1%2").arg(d, 0, 'f', 1).arg(unitText)); texts.append(text); } -- cgit v1.2.3-70-g09d2