mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-18 17:10:55 +02:00
Bug1880: don't quantize DBL_MAX resulting in a negative value.
This commit is contained in:
parent
0fc4c2de7a
commit
c7f97e7730
@ -1180,7 +1180,9 @@ void ControlToolBar::OnRecord(wxCommandEvent &evt)
|
|||||||
|
|
||||||
// Quantize bounds to the rate of the new track.
|
// Quantize bounds to the rate of the new track.
|
||||||
if (c == 0) {
|
if (c == 0) {
|
||||||
|
if (t0 < DBL_MAX)
|
||||||
t0 = newTrack->LongSamplesToTime(newTrack->TimeToLongSamples(t0));
|
t0 = newTrack->LongSamplesToTime(newTrack->TimeToLongSamples(t0));
|
||||||
|
if (t1 < DBL_MAX)
|
||||||
t1 = newTrack->LongSamplesToTime(newTrack->TimeToLongSamples(t1));
|
t1 = newTrack->LongSamplesToTime(newTrack->TimeToLongSamples(t1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user