mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-26 22:51:21 +01:00
Bug920 - Backward playback when selection beyond end of the project
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user