[gimp] Decrement sample size just like in the gradients_sample_uniform case
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Decrement sample size just like in the gradients_sample_uniform case
- Date: Fri, 15 Oct 2010 16:58:57 +0000 (UTC)
commit 675a9c3950d0466813cb940c0bc5e2902bfb1cfe
Author: Mukund Sivaraman <muks banu com>
Date: Fri Oct 15 22:27:01 2010 +0530
Decrement sample size just like in the gradients_sample_uniform case
app/pdb/gradients-cmds.c | 2 +-
tools/pdbgen/pdb/gradients.pdb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/pdb/gradients-cmds.c b/app/pdb/gradients-cmds.c
index 15d19e6..98876b4 100644
--- a/app/pdb/gradients-cmds.c
+++ b/app/pdb/gradients-cmds.c
@@ -254,7 +254,7 @@ gradients_get_gradient_data_invoker (GimpProcedure *procedure,
pv = grad_data;
- while (sample_size)
+ while (sample_size--)
{
seg = gimp_gradient_get_color_at (gradient, context, seg,
pos, reverse, &color);
diff --git a/tools/pdbgen/pdb/gradients.pdb b/tools/pdbgen/pdb/gradients.pdb
index d7a4ae4..336c412 100644
--- a/tools/pdbgen/pdb/gradients.pdb
+++ b/tools/pdbgen/pdb/gradients.pdb
@@ -224,7 +224,7 @@ sub gradients_get_gradient_data {
pv = grad_data;
- while (sample_size)
+ while (sample_size--)
{
seg = gimp_gradient_get_color_at (gradient, context, seg,
pos, reverse, &color);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]