use the correct pointer when dumping gradients to stderr in case of

2000-12-11  Sven Neumann  <sven@gimp.org>

	* app/gradient.c: use the correct pointer when dumping gradients to
	stderr in case of problems. Sort of fixes bug #31510.
This commit is contained in:
Sven Neumann 2000-12-11 17:15:29 +00:00 committed by Sven Neumann
parent b755f5751a
commit fe4acfa4ed
5 changed files with 21 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2000-12-11 Sven Neumann <sven@gimp.org>
* app/gradient.c: use the correct pointer when dumping gradients to
stderr in case of problems. Sort of fixes bug #31510.
2000-12-11 Sven Neumann <sven@gimp.org>
* app/gimphistogram.c (gimp_histogram_calculate_sub_region):

View file

@ -5939,6 +5939,9 @@ grad_dump_gradient (gradient_t *grad,
{
grad_segment_t *seg;
g_return_if_fail (grad != NULL);
g_return_if_fail (file != NULL);
fprintf (file, "Name: \"%s\"\n", grad->name);
fprintf (file, "Dirty: %d\n", grad->dirty);
fprintf (file, "Filename: \"%s\"\n", grad->filename);
@ -6045,7 +6048,7 @@ seg_get_segment_at (gradient_t *grad,
}
/* Oops: we should have found a segment, but we didn't */
grad_dump_gradient (curr_gradient, stderr);
grad_dump_gradient (grad, stderr);
gimp_fatal_error ("seg_get_segment_at(): "
"No matching segment for position %0.15f", pos);

View file

@ -5939,6 +5939,9 @@ grad_dump_gradient (gradient_t *grad,
{
grad_segment_t *seg;
g_return_if_fail (grad != NULL);
g_return_if_fail (file != NULL);
fprintf (file, "Name: \"%s\"\n", grad->name);
fprintf (file, "Dirty: %d\n", grad->dirty);
fprintf (file, "Filename: \"%s\"\n", grad->filename);
@ -6045,7 +6048,7 @@ seg_get_segment_at (gradient_t *grad,
}
/* Oops: we should have found a segment, but we didn't */
grad_dump_gradient (curr_gradient, stderr);
grad_dump_gradient (grad, stderr);
gimp_fatal_error ("seg_get_segment_at(): "
"No matching segment for position %0.15f", pos);

View file

@ -5939,6 +5939,9 @@ grad_dump_gradient (gradient_t *grad,
{
grad_segment_t *seg;
g_return_if_fail (grad != NULL);
g_return_if_fail (file != NULL);
fprintf (file, "Name: \"%s\"\n", grad->name);
fprintf (file, "Dirty: %d\n", grad->dirty);
fprintf (file, "Filename: \"%s\"\n", grad->filename);
@ -6045,7 +6048,7 @@ seg_get_segment_at (gradient_t *grad,
}
/* Oops: we should have found a segment, but we didn't */
grad_dump_gradient (curr_gradient, stderr);
grad_dump_gradient (grad, stderr);
gimp_fatal_error ("seg_get_segment_at(): "
"No matching segment for position %0.15f", pos);

View file

@ -5939,6 +5939,9 @@ grad_dump_gradient (gradient_t *grad,
{
grad_segment_t *seg;
g_return_if_fail (grad != NULL);
g_return_if_fail (file != NULL);
fprintf (file, "Name: \"%s\"\n", grad->name);
fprintf (file, "Dirty: %d\n", grad->dirty);
fprintf (file, "Filename: \"%s\"\n", grad->filename);
@ -6045,7 +6048,7 @@ seg_get_segment_at (gradient_t *grad,
}
/* Oops: we should have found a segment, but we didn't */
grad_dump_gradient (curr_gradient, stderr);
grad_dump_gradient (grad, stderr);
gimp_fatal_error ("seg_get_segment_at(): "
"No matching segment for position %0.15f", pos);