From 51b4418ba6327808a0e70a3199017189f7a8843d Mon Sep 17 00:00:00 2001 From: hsonne Date: Wed, 25 Oct 2023 21:51:57 +0200 Subject: [PATCH] Start loop with i = 0, improve name in log --- src/app/calculation.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/calculation.cpp b/src/app/calculation.cpp index 6630f62..b9e0dd8 100644 --- a/src/app/calculation.cpp +++ b/src/app/calculation.cpp @@ -854,11 +854,11 @@ void Calculation::logResults( logVariable("in.mainArea", results.mainArea); - logVariable("bagrov_roof", results.runoffSealed.roof); + logVariable("runoffSealed.roof", results.runoffSealed.roof); - for (int i = 1; i < results.runoffSealed.surface.size(); i++) { + for (int i = 0; i < results.runoffSealed.surface.size(); i++) { logVariable( - QString("bagrov_surface[%1]").arg(i), + QString("runoffSealed.surface[%1]").arg(i), results.runoffSealed.surface[i] ); }