avoid calling FindScrollStep with a negative offset

svn: r12062
This commit is contained in:
Matthew Flatt 2008-10-18 23:47:32 +00:00
parent c73be48400
commit 881d884b67

View File

@ -747,6 +747,8 @@ long wxMediaLine::FindExtraScroll(double y)
{
if (y >= h)
return numscrolls;
if (y <= 0)
return 0;
if (!scrollSnip)
return 0;