From 8212a923b22a8aa942c3b95ed1d4110bd6fd21a7 Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Mon, 27 Nov 2017 14:45:02 +0100 Subject: Use MAX_CYLINDERS consistently Signed-off-by: Stefan Fuchs --- desktop-widgets/tab-widgets/maintab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop-widgets/tab-widgets/maintab.cpp') 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 gasPair = gasUsed.last(); -- cgit v1.2.3-70-g09d2