rem: if (isCurveMode) calcFunctionCurves(courbe); 
add: calcFunctionCurves(courbe); 
context: function MyFlip(courbe){	var tmpX, tmpY, tmpCurve, tmpSustain, tmpFix;		// swap points so there's no need to reorder after (avoid the "same x value" problem for the ordering)	for (var i = 0; i < Math.round(courbe.np / 2); i++) {		if (i == courbe.np - i - 1) { // odd number of points (the middle stay at the middle position)			courbe.pa[i].valx = (courbe.domain[0] + courbe.domain[1]) - courbe.pa[i].valx;			courbe.pa[i].x = val2x(courbe, courbe.pa[i].valx);			courbe.pa[i].valy = (courbe.range[0] + courbe.range[1]) - courbe.pa[i].valy;			courbe.pa[i].y = val2y(courbe, courbe.pa[i].valy);					} else {			tmpX = courbe.pa[i].valx;			tmpY = courbe.pa[i].valy;			if (isCurveMode)				tmCurve = courbe.pa[i].curve; // added - MR			tmpSustain = courbe.pa[i].sustain;			tmpFix = courbe.pa[i].fix;						courbe.pa[i].valx = (courbe.domain[0] + courbe.domain[1]) - courbe.pa[courbe.np - i - 1].valx;			courbe.pa[i].x = val2x(courbe, courbe.pa[i].valx);			courbe.pa[i].valy = (courbe.range[0] + courbe.range[1]) - courbe.pa[courbe.np - i - 1].valy;			courbe.pa[i].y = val2y(courbe, courbe.pa[i].valy);			if (isCurveMode)				courbe.pa[i].curve = courbe.pa[courbe.np - i - 1].curve;  		// added - MR			courbe.pa[i].sustain = courbe.pa[courbe.np - i - 1].sustain;			courbe.pa[i].fix = courbe.pa[courbe.np - i - 1].fix;				courbe.pa[courbe.np - i - 1].valx = (courbe.domain[0] + courbe.domain[1]) - tmpX;			courbe.pa[courbe.np - i - 1].x = val2x(courbe, courbe.pa[courbe.np - i - 1].valx);			courbe.pa[courbe.np - i - 1].valy = (courbe.range[0] + courbe.range[1]) - tmpY;			courbe.pa[courbe.np - i - 1].y = val2y(courbe, tmpY);			if (isCurveMode)				courbe.pa[courbe.np - i - 1].curve = tmpCurve;  				// added - MR			courbe.pa[courbe.np - i - 1].sustain = tmpSustain;			courbe.pa[courbe.np - i - 1].fix = tmpFix;		}			}	ApplyAutoSustain();		if (isCurveMode)		calcFunctionCurves(courbe); 	// added - MR	askForDrawFunctions();	askForNotify();}
meta: 6421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6421/fd3c2db7ec5622784168e75eedd5145b47e8b8b7/ej.function.js/clean/ejies-jsui/ej.function.js