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;