From 3962bdc9fe4f62fff2d0d618881e6ca53946cc15 Mon Sep 17 00:00:00 2001 From: leo Date: Sun, 6 Jun 2021 23:58:02 +0200 Subject: [PATCH] bug fixes --- inputparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inputparser.cpp b/inputparser.cpp index 0be78b3..c0fc0ce 100644 --- a/inputparser.cpp +++ b/inputparser.cpp @@ -49,6 +49,8 @@ void InputParser::process() computeEpochDate(); break; case 3: + if(currentLine.maxFreq==maxFreq) currentY++; + minFreq=qMin(minFreq,currentLine.minFreq); maxFreq=qMax(maxFreq,currentLine.maxFreq); break; @@ -67,8 +69,6 @@ void InputParser::process() case '\n': sendPixel(); - if(currentLine.maxFreq==maxFreq) currentY++; - lastMaxFreq=currentLine.maxFreq; index=0;