1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 23:59:37 +02:00

Bug920 - Backward playback when selection beyond end of the project

This commit is contained in:
Paul Licameli 2015-05-19 22:52:16 -04:00
parent 32799622ad
commit c1f093ed2e

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