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>
This commit is contained in:
Lubomir I. Ivanov 2015-01-31 19:36:35 +02:00 committed by Dirk Hohndel
parent d43756812c
commit 8eb25f6700

View file

@ -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);
}