Enable the code that was #if 0'ed out

Linking error is fixed.

Signed-off-by: Thiago Macieira <thiago@macieira.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Thiago Macieira 2013-05-06 20:55:28 -07:00 committed by Dirk Hohndel
parent 265376db06
commit 5e4f06e6ad

View file

@ -103,11 +103,9 @@ void MainTab::updateDiveInfo(int dive)
ui->airPressureText->setText(QString("%1mbar").arg(d->surface_pressure.mbar));
else
ui->airPressureText->setText(QString(""));
#if 0 /* this fails to link, even though the function is defined in statistics.c / statistics.h */
if (d)
ui->gasUsedText->setText(get_volume_string(get_gas_used(d), TRUE));
else
#endif
ui->gasUsedText->setText("");
}