~ubuntu-branches/ubuntu/intrepid/gimp/intrepid-backports

« back to all changes in this revision

Viewing changes to app/gegl/gimpcurvesconfig.c

  • Committer: Bazaar Package Importer
  • Author(s): Bartosz
  • Date: 2009-01-09 16:24:23 UTC
  • mfrom: (38.1.1 jaunty)
  • Revision ID: james.westby@ubuntu.com-20090109162423-rsr8ky4mzv8irpf8
Tags: 2.6.3-1ubuntu1~intrepid1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
411
411
 
412
412
      gimp_curve_set_curve_type (curve, GIMP_CURVE_SMOOTH);
413
413
 
 
414
      gimp_curve_reset (curve, FALSE);
 
415
 
414
416
      for (j = 0; j < GIMP_CURVE_N_CRUFT_POINTS; j++)
415
417
        {
416
418
          if (index[i][j] < 0 || value[i][j] < 0)
417
 
            gimp_curve_set_point (curve, j, -1, -1);
 
419
            gimp_curve_set_point (curve, j, -1.0, -1.0);
418
420
          else
419
421
            gimp_curve_set_point (curve, j,
420
422
                                  (gdouble) index[i][j] / 255.0,
476
478
 
477
479
      for (j = 0; j < curve->n_points; j++)
478
480
        {
479
 
          gdouble x, y;
480
 
 
481
 
          gimp_curve_get_point (curve, j, &x, &y);
 
481
          /* don't use gimp_curve_get_point() becaue that doesn't
 
482
           * work when the curve type is GIMP_CURVE_FREE
 
483
           */
 
484
          gdouble x = curve->points[j].x;
 
485
          gdouble y = curve->points[j].y;
482
486
 
483
487
          if (x < 0.0 || y < 0.0)
484
488
            {