[gimp/soc-2010-cage-2] Fix gfloat to gdouble resolving any nan-ds in coefs.
- From: Alexia Death <alexiade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2010-cage-2] Fix gfloat to gdouble resolving any nan-ds in coefs.
- Date: Thu, 12 Aug 2010 21:08:29 +0000 (UTC)
commit a31b437bf6f14997cafef587a08ce10bbdcf643f
Author: Alexia Death <alexiadeath gmail com>
Date: Fri Aug 13 00:07:25 2010 +0300
Fix gfloat to gdouble resolving any nan-ds in coefs.
app/gegl/gimpoperationcagecoefcalc.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/gegl/gimpoperationcagecoefcalc.c b/app/gegl/gimpoperationcagecoefcalc.c
index 8206ff6..bd0ae83 100644
--- a/app/gegl/gimpoperationcagecoefcalc.c
+++ b/app/gegl/gimpoperationcagecoefcalc.c
@@ -217,7 +217,7 @@ gimp_operation_cage_coef_calc_process (GeglOperation *operation,
for( j = 0; j < config->cage_vertice_number; j++)
{
GimpVector2 v1,v2,a,b,p;
- gfloat Q,S,R,BA,SRT,L0,L1,A0,A1,A10,L10;
+ gdouble BA,SRT,L0,L1,A0,A1,A10,L10, Q,S,R;
v1 = config->cage_vertices[j];
v2 = config->cage_vertices[(j+1)%config->cage_vertice_number];
@@ -247,6 +247,7 @@ gimp_operation_cage_coef_calc_process (GeglOperation *operation,
if (isnan(coef[j + config->cage_vertice_number]))
{
coef[j + config->cage_vertice_number] = 0.0;
+ printf("NAN SRT: %f\n", SRT);
}
/* vertice coef */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]