rem: courbe.pa.splice(tmp, 0, new Point(x,y, x2val(courbe, x), y2val(courbe, y), curve) ); 
add: courbe.pa.splice(tmp, 0, new Point(x,y, x2val(courbe, x), y2val(courbe, y), curve) ); 
context: function AddOnePoint(courbe, x, y, curve){	var tmp = courbe.np;	// si tmp n'est pas modifi c'est que c'est la plus grande valeur...	var i;		if (isCurveMode && LimitNP && tmp >= MAX_CURVE_NP) return -1; // don't add points if more points than curve~ return -1 for the mousing functions	if (isCurveMode) {		if(LimitNP && tmp >= MAX_CURVE_NP) return -1; // don't add points if more points than curve~ return -1 for the mousing functions	}	if (courbe.np == 0) {	// cas particulier quand il n'y a pas de point dans la courbe		if (isCurveMode)			courbe.pa[0] = new Point(x,y, x2val(courbe, x), y2val(courbe, y), curve);		else					courbe.pa[0] = new Point(x,y, x2val(courbe, x), y2val(courbe, y));		tmp = 0;				courbe.np++;	}	else {		for (i = 0; i < courbe.np; i++) {			if (courbe.pa[i].x > x) {				tmp = i;				break;			}		}				// insre un point		if (isCurveMode)				courbe.pa.splice(tmp, 0, new Point(x,y, x2val(courbe, x), y2val(courbe, y), curve) );	// insre un point		else			courbe.pa.splice(tmp, 0, new Point(x,y, x2val(courbe, x), y2val(courbe, y)) );		courbe.np++;	// on incrmente car il y a un point supplmentaire dans la courbe				if (isCurveMode) {			calcOneCurve(courbe, tmp-1, tmp); // added - MR			calcOneCurve(courbe, tmp, tmp+1); // added - MR		}			}	return tmp;		// valeur de retour utilise comme seleected point}
meta: 6421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6421/fd3c2db7ec5622784168e75eedd5145b47e8b8b7/ej.function.js/clean/ejies-jsui/ej.function.js