[PATCH 2/2] Enable the code that was #if 0'ed out

Thiago Macieira thiago at macieira.org
Mon May 6 20:55:28 PDT 2013


Linking error is fixed.

Signed-off-by: Thiago Macieira <thiago at macieira.org>
---
 qt-ui/maintab.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 5f668b2..89501fc 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -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("");
 }
 
-- 
1.7.11.7



More information about the subsurface mailing list