Author: post
Date: 2010-02-12 22:19:15 +0100 (Fri, 12 Feb 2010)
New Revision: 3177
Modified:
trunk/plugins/dcp/dcp.c
Log:
Avoid crash in C-code tone curve.
Modified: trunk/plugins/dcp/dcp.c
===================================================================
--- trunk/plugins/dcp/dcp.c 2010-02-12 21:18:51 UTC (rev 3176)
+++ trunk/plugins/dcp/dcp.c 2010-02-12 21:19:15 UTC (rev 3177)
@@ -816,8 +816,8 @@
else
{
// Case 4: r >= g == b; s = 0;
- rr = tone_lut[_S(r)];
- gg = tone_lut[_S(b)];
+ rr = lookup_tone(r, tone_lut);
+ gg = lookup_tone(b, tone_lut);
bb = gg;
}
}
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit