1
0
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:
Paul Licameli 2015-05-19 22:53:30 -04:00
commit 0ac4c53bb9

View File

@ -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);