Index: source/blender/src/editaction.c =================================================================== RCS file: /cvsroot/bf-blender/blender/source/blender/src/editaction.c,v retrieving revision 1.125 diff -u -r1.125 editaction.c --- source/blender/src/editaction.c 13 Apr 2007 11:15:08 -0000 1.125 +++ source/blender/src/editaction.c 13 Apr 2007 18:21:36 -0000 @@ -303,6 +303,7 @@ IpoCurve *icu; rctf rectf; float xmin, xmax, x, y; + float xrange[2]; int clickmin, clickmax; int wsize; short mval[2]; @@ -349,13 +350,15 @@ } /* try in action channels */ + xrange[0]= xmin; + xrange[1]= xmax; for (achan = act->chanbase.first; achan; achan=achan->next) { if(VISIBLE_ACHAN(achan)) { if (clickmax < 0) break; if (clickmin <= 0) { /* found level - action channel */ - icu= get_nearest_icu_key(achan->ipo->curve.first, selx, sel, &xmin); + icu= get_nearest_icu_key(achan->ipo->curve.first, selx, sel, xrange); *ret_type= ACTTYPE_ACHAN; return achan; @@ -389,7 +392,7 @@ break; if (clickmin <= 0) { /* found level - ipo-curve channel */ - icu= get_nearest_icu_key (icu, selx, sel, &xmin); + icu= get_nearest_icu_key (icu, selx, sel, xrange); *ret_type= ACTTYPE_ICU; *par= achan; @@ -421,7 +424,7 @@ break; if (clickmin <= 0) { /* found match - constraint channel */ - icu= get_nearest_icu_key(conchan->ipo->curve.first, selx, sel, &xmin); + icu= get_nearest_icu_key(conchan->ipo->curve.first, selx, sel, xrange); *ret_type= ACTTYPE_CONCHAN; *par= achan;