mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
d43756812c
commit
8eb25f6700
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue