diff options
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.cpp')
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index 244c6465a..80ee2d9f4 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -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(); |