From d7beb3b41b2cb008e59abb33fe130104385ec240 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Wed, 6 Dec 2023 10:49:33 +0100 Subject: [PATCH] Fix: replace 'continue' with 'break' to return first fitting time-range in findNextWorkTimeRange(). --- library/src/calculator_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/calculator_functions.cpp b/library/src/calculator_functions.cpp index a4de4ee..6b077b5 100644 --- a/library/src/calculator_functions.cpp +++ b/library/src/calculator_functions.cpp @@ -265,7 +265,7 @@ int Calculator::findNextWorkTimeRange(QDateTime const &dt, if (dt.time() < worktime_from) { nextWorkTimeRange = w; - continue; + break; } } return nextWorkTimeRange;