1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

Bug 1693: partial fix.

Problem: When selection details set to start and end in selection bar, start cannot be increased higher than end, and end cannot be decreased to be less than start. These restrictions are not present in previous versions of Audacity, and are not desirable.

Fixed.
This commit is contained in:
David Bailes 2017-07-21 10:43:27 +01:00
parent 3e1890f20d
commit 7591a65e56

View File

@ -554,10 +554,10 @@ void SelectionBar::ModifySelection(int newDriver, bool done)
switch(i){
case StartTimeID + 4 * EndTimeID:
if( mEnd < mStart )
mEnd = mStart;
mStart = mEnd;
case StartTimeID * 4 + EndTimeID:
if( mStart > mEnd )
mStart = mEnd;
mEnd = mStart;
mLength = mEnd - mStart;
mCenter = (mStart+mEnd)/2.0;
break;