From 66971b7e6b5c0733965197d2f6ed2152054e28ce Mon Sep 17 00:00:00 2001 From: mjbudd77 Date: Tue, 4 Jan 2022 21:11:49 -0500 Subject: [PATCH] Calcation fix for is line visible in Qt TAS piano roll. --- src/drivers/Qt/TasEditor/TasEditorWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp index 7401b65a..2c82854d 100644 --- a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp +++ b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp @@ -4352,7 +4352,7 @@ void QPianoRoll::updateLinesCount(void) //---------------------------------------------------------------------------- bool QPianoRoll::lineIsVisible( int lineNum ) { - int lineEnd = lineOffset + viewLines - 1; + int lineEnd = lineOffset + viewLines - 2; return ( (lineNum >= lineOffset) && (lineNum < lineEnd) ); }