gimp r25987 - in trunk: . app/gegl
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r25987 - in trunk: . app/gegl
- Date: Wed, 25 Jun 2008 08:13:57 +0000 (UTC)
Author: mitch
Date: Wed Jun 25 08:13:57 2008
New Revision: 25987
URL: http://svn.gnome.org/viewvc/gimp?rev=25987&view=rev
Log:
2008-06-25 Michael Natterer <mitch gimp org>
* app/gegl/gimpcurvesconfig.c (gimp_curves_config_load_cruft):
set any parsed negative value as -1 in the curves object because
that's the only negative value allowed.
Modified:
trunk/ChangeLog
trunk/app/gegl/gimpcurvesconfig.c
Modified: trunk/app/gegl/gimpcurvesconfig.c
==============================================================================
--- trunk/app/gegl/gimpcurvesconfig.c (original)
+++ trunk/app/gegl/gimpcurvesconfig.c Wed Jun 25 08:13:57 2008
@@ -420,9 +420,14 @@
gimp_curve_set_curve_type (curve, GIMP_CURVE_SMOOTH);
for (j = 0; j < GIMP_CURVE_N_CRUFT_POINTS; j++)
- gimp_curve_set_point (curve, j,
- (gdouble) index[i][j] / 255.0,
- (gdouble) value[i][j] / 255.0);
+ {
+ if (index[i][j] < 0 || value[i][j] < 0)
+ gimp_curve_set_point (curve, j, -1, -1);
+ else
+ gimp_curve_set_point (curve, j,
+ (gdouble) index[i][j] / 255.0,
+ (gdouble) value[i][j] / 255.0);
+ }
gimp_data_thaw (GIMP_DATA (curve));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]