fix for negative sound duration problem]

This commit is contained in:
gregw 2002-09-24 18:12:54 +00:00
parent af4c7fd215
commit d78a078649

View File

@ -32,7 +32,7 @@ class SoundInterval(Interval.Interval):
self.startTime = startTime
# If no duration given use sound's duration as interval's duration
if duration == 0.0 and self.sound != None:
duration = self.sound.length() - self.startTime
duration = max(self.sound.length() - self.startTime, 0)
if (duration == 0):
self.notify.warning('zero length duration!')
# MPG - hack for Miles bug