avoid calling FindScrollStep with a negative offset
svn: r12062
This commit is contained in:
parent
c73be48400
commit
881d884b67
|
@ -747,6 +747,8 @@ long wxMediaLine::FindExtraScroll(double y)
|
|||
{
|
||||
if (y >= h)
|
||||
return numscrolls;
|
||||
if (y <= 0)
|
||||
return 0;
|
||||
|
||||
if (!scrollSnip)
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user