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:
parent
3e1890f20d
commit
7591a65e56
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user