mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 08:09:32 +02:00
Bug920 - Backward playback when selection beyond end of the project
This commit is contained in:
parent
32799622ad
commit
c1f093ed2e
@ -570,8 +570,8 @@ int ControlToolBar::PlayPlayRegion(const SelectedRegion &selectedRegion,
|
||||
if (backwards)
|
||||
std::swap(t0, t1);
|
||||
|
||||
t0 = wxMax(t0, 0.0);
|
||||
t1 = wxMin(t1, latestEnd);
|
||||
t0 = std::max(0.0, std::min(t0, latestEnd));
|
||||
t1 = std::max(0.0, std::min(t1, latestEnd));
|
||||
|
||||
if (backwards)
|
||||
std::swap(t0, t1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user