mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-26 15:03:47 +01:00
Residuals from Bug 1296
Added forcing time64 to be positive. Fixes problem where large negative value overflows into int. More careful computation of TimeToPosition() so floor is only called with in range values. Re-instated 'true' flags for hiddenMid calls, which I'd mistakenly dropped, so that (later) FishEye can distinguish.
This commit is contained in:
@@ -58,9 +58,13 @@ wxInt64 ZoomInfo::TimeToPosition(double projectTime,
|
||||
, bool // ignoreFisheye
|
||||
) const
|
||||
{
|
||||
return floor(0.5 +
|
||||
zoom * (projectTime - h) + origin
|
||||
);
|
||||
double t = 0.5 + zoom * (projectTime - h) + origin ;
|
||||
if( t < wxINT64_MIN )
|
||||
return wxINT64_MIN;
|
||||
if( t > wxINT64_MAX )
|
||||
return wxINT64_MAX;
|
||||
t = floor( t );
|
||||
return t;
|
||||
}
|
||||
|
||||
bool ZoomInfo::ZoomInAvailable() const
|
||||
|
||||
Reference in New Issue
Block a user