X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.0%2Fplugins%2Fhistogram_bezier%2Fbistogram.C;h=9e34e016ddca680cde72e400dab9bf5225f9a83a;hp=6799e316e8ea0f2f1f2a3eb82573aa0b15e75ebc;hb=1c762fccb1d90053abf84f0fa81c28a1a13808c7;hpb=27f1d9cace8459ed7026f82726cdf8fbac790e75 diff --git a/cinelerra-5.0/plugins/histogram_bezier/bistogram.C b/cinelerra-5.0/plugins/histogram_bezier/bistogram.C index 6799e316..9e34e016 100644 --- a/cinelerra-5.0/plugins/histogram_bezier/bistogram.C +++ b/cinelerra-5.0/plugins/histogram_bezier/bistogram.C @@ -342,7 +342,7 @@ float HistogramMain::calculate_linear(float input, float dy = y2 - y1; float delx = input - x1; output = (grad2 * dx + grad1 * dx - 2*dy) / (dx * dx * dx) * delx * delx * delx + - (dx * dx) * (3*dy - 2* grad1*dx - grad2*dx) / (dx * dx) * delx * delx + grad1*delx + y1; + (3*dy - 2* grad1*dx - grad2*dx) / (dx * dx) * delx * delx + grad1*delx + y1; } else if (config.smoothMode == HISTOGRAM_BEZIER) {