Use MAX_CYLINDERS consistently
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
b17f1e2d30
commit
8212a923b2
@ -106,7 +106,7 @@ void TabDiveStatistics::updateData()
|
||||
QString gasUsedString;
|
||||
volume_t vol;
|
||||
selectedDivesGasUsed(gasUsed);
|
||||
for (int j = 0; j < 20; j++) {
|
||||
for (int j = 0; j < MAX_CYLINDERS; j++) {
|
||||
if (gasUsed.isEmpty())
|
||||
break;
|
||||
QPair<QString, int> gasPair = gasUsed.last();
|
||||
|
||||
@ -569,7 +569,7 @@ void MainTab::updateDiveInfo(bool clear)
|
||||
QString gasUsedString;
|
||||
volume_t vol;
|
||||
selectedDivesGasUsed(gasUsed);
|
||||
for (int j = 0; j < 20; j++) {
|
||||
for (int j = 0; j < MAX_CYLINDERS; j++) {
|
||||
if (gasUsed.isEmpty())
|
||||
break;
|
||||
QPair<QString, int> gasPair = gasUsed.last();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user