mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-10 00:51:13 +02:00
Merge: Bug920 - Backward playback when selection beyond end of the project
This commit is contained in:
commit
0ac4c53bb9
@ -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