rem: for(i = lequel; i < courbe.np; i++) { 
add: for(var i = lequel; i < courbe.np; i++) { 
context: function MovePoint(courbe, lequel, newx, newy, curve){	var dx = 0;		if (lequel >= courbe.np) {		ejies.error(this, "no point", lequel,"in function", courbe.name);		return;	}//	courbe.pa[lequel].valx = newx;	courbe.pa[lequel].valy = newy;					//	courbe.pa[lequel].x = val2x(courbe, newx);	courbe.pa[lequel].y = val2y(courbe, newy);	// only change curve if it's a valid value - allowing a dummy value e.g. 999 to leave it alone	if(curve >= CURVE_MIN && curve <= CURVE_MAX)		courbe.pa[lequel].curve = curve;		if(MoveMode == 1) {		if(lequel > 0 && newx < courbe.pa[lequel-1].valx) 			newx = courbe.pa[lequel-1].valx;		else if(lequel < (courbe.np-1) && newx > courbe.pa[lequel+1].valx) 			newx = courbe.pa[lequel+1].valx;				courbe.pa[lequel].valx = newx;		courbe.pa[lequel].x = val2x(courbe, newx);			} else if(MoveMode == 2 || MoveMode == 3) {				if(lequel > 0 && newx < courbe.pa[lequel-1].valx) newx = courbe.pa[lequel-1].valx;				dx = newx - courbe.pa[lequel].valx;				if(MoveMode == 3) {												if(dx > (courbe.domain[1] - courbe.pa[courbe.np-1].valx)) {				dx = courbe.domain[1] - courbe.pa[courbe.np-1].valx;			}		}				if(dx != 0) {						for(i = lequel; i < courbe.np; i++) {				courbe.pa[i].valx = ejies.clip(dx+courbe.pa[i].valx, courbe.domain[0], courbe.domain[1]);				courbe.pa[i].x = val2x(courbe, courbe.pa[i].valx);			}		}			} else {		courbe.pa[lequel].valx = newx;		courbe.pa[lequel].x = val2x(courbe, newx);	}		if(courbe.np == 1) {		//only one point		//..		;	}	else if(lequel == 0 && courbe.pa[lequel].valx <= courbe.pa[lequel+1].valx) {		//first point and it still is		if(MoveMode == 0 || MoveMode == 1)			calcOneCurve(courbe, lequel, lequel+1); 		// added - MR		else if(MoveMode == 2 || MoveMode == 3)			offsetNCurves(courbe, lequel, courbe.np-1, dx);				}	else if(lequel == (courbe.np-1) && courbe.pa[lequel].valx >= courbe.pa[lequel-1].valx){		//last point and it still is		calcOneCurve(courbe, lequel-1, lequel); // added - MR			}	else if(courbe.pa[lequel].valx >= courbe.pa[lequel-1].valx && courbe.pa[lequel].valx <= courbe.pa[lequel+1].valx)  {		// no need to sort - the order hasn't changed				if(MoveMode == 0 || MoveMode == 1) {			calcOneCurve(courbe, lequel-1, lequel); 		// added - MR			calcOneCurve(courbe, lequel, lequel+1); 		// added - MR		}		else if(MoveMode == 2 || MoveMode == 3)		{			calcOneCurve(courbe, lequel-1, lequel); 		// added - MR			offsetNCurves(courbe, lequel, courbe.np-1, dx);		}	}	else {		sortingPoints(courbe);	// il faut maintenant remettre tous les points dans l'ordre		calcFunctionCurves(courbe);				ApplyAutoSustain(); // moved in here - no need to do it if points aren't re-ordered	}	}
meta: 6421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6421/fd3c2db7ec5622784168e75eedd5145b47e8b8b7/ej.function.js/clean/ejies-jsui/ej.function.js