Calcation fix for is line visible in Qt TAS piano roll.
This commit is contained in:
parent
975632856f
commit
66971b7e6b
|
@ -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) );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue