diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-01-31 19:36:35 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-31 10:13:36 -0800 |
commit | 8eb25f67003d9f513094edf2b2f8e0224854e905 (patch) | |
tree | 626ce4b84569246e82e0a7b62ae59a2d74b936fe | |
parent | d43756812ce747384c3d0891d684aa927380cc25 (diff) | |
download | subsurface-8eb25f67003d9f513094edf2b2f8e0224854e905.tar.gz |
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 <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/profile/diveprofileitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |