[gimp] Bug 793667 - Solid noise filter (pop-up bug report dialog).
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 793667 - Solid noise filter (pop-up bug report dialog).
- Date: Wed, 21 Feb 2018 14:14:48 +0000 (UTC)
commit 264565e121494598022e03875342ebfdfee00a6d
Author: Jehan <jehan girinstud io>
Date: Wed Feb 21 15:12:33 2018 +0100
Bug 793667 - Solid noise filter (pop-up bug report dialog).
gimp_spin_scale_set_scale_limits() needs double limit values. Using
integer makes us vulnerable to rounding bugs.
app/propgui/gimppropgui.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/propgui/gimppropgui.c b/app/propgui/gimppropgui.c
index a63eee0..111e56f 100644
--- a/app/propgui/gimppropgui.c
+++ b/app/propgui/gimppropgui.c
@@ -256,16 +256,16 @@ gimp_prop_widget_new_from_pspec (GObject *config,
if (HAS_KEY (pspec, "axis", "x"))
{
- gint min = MAX (lower, off_x);
- gint max = MIN (upper, off_x + area->width);
+ gdouble min = MAX (lower, off_x);
+ gdouble max = MIN (upper, off_x + area->width);
gimp_spin_scale_set_scale_limits (GIMP_SPIN_SCALE (widget),
min, max);
}
else if (HAS_KEY (pspec, "axis","y"))
{
- gint min = MAX (lower, off_y);
- gint max = MIN (upper, off_y + area->height);
+ gdouble min = MAX (lower, off_y);
+ gdouble max = MIN (upper, off_y + area->height);
gimp_spin_scale_set_scale_limits (GIMP_SPIN_SCALE (widget),
min, max);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]