Calcation fix for is line visible in Qt TAS piano roll.

This commit is contained in:
mjbudd77 2022-01-04 21:11:49 -05:00
parent 975632856f
commit 66971b7e6b
1 changed files with 1 additions and 1 deletions

View File

@ -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) );
}