* Fixed bug #4000 (can't select horizontally flipped sequence effect strips).

Just needed a check if start > end.
This commit is contained in:
Matt Ebb
2006-06-04 15:00:24 +00:00
parent 14ede28c56
commit f2cfb886d6

View File

@@ -190,7 +190,10 @@ Sequence *find_nearest_seq(int *hand)
seq= ed->seqbasep->first;
while(seq) {
if(seq->machine == (int)y) {
if(seq->startdisp<=x && seq->enddisp>=x) {
/* check for both normal strips, and strips that have been flipped horizontally */
if( ((seq->startdisp < seq->enddisp) && (seq->startdisp<=x && seq->enddisp>=x)) ||
((seq->startdisp > seq->enddisp) && (seq->startdisp>=x && seq->enddisp<=x)) )
{
if(seq->type < SEQ_EFFECT) {
if( seq->handsize+seq->startdisp >=x ) {