mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 23:33:49 +01: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user