[gimp/gimp-2-10] libgimpwidgets: fix logarithmic transform in gimp_scale_entry
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] libgimpwidgets: fix logarithmic transform in gimp_scale_entry
- Date: Mon, 20 Apr 2020 15:45:41 +0000 (UTC)
commit 038de4d3ef99aea3ab36eb05be668821fec385b5
Author: Ell <ell_se yahoo com>
Date: Mon Apr 20 18:42:17 2020 +0300
libgimpwidgets: fix logarithmic transform in gimp_scale_entry
Use the right GtkAdjustment in gimp_scale_entry_log_to_linear().
See merge request !49.
Thanks to MihailZenkov for spotting this!
(cherry picked from commit 5dc1572b010ffd05f91519fdbd02ec6de9447403)
libgimpwidgets/gimpscaleentry.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgimpwidgets/gimpscaleentry.c b/libgimpwidgets/gimpscaleentry.c
index 759d62c49c..8112434b3b 100644
--- a/libgimpwidgets/gimpscaleentry.c
+++ b/libgimpwidgets/gimpscaleentry.c
@@ -91,7 +91,7 @@ gimp_scale_entry_log_to_linear (GBinding *binding,
GtkAdjustment *spin_adjustment;
gdouble value = g_value_get_double (from_value);
- spin_adjustment = GTK_ADJUSTMENT (g_binding_get_target (binding));
+ spin_adjustment = GTK_ADJUSTMENT (g_binding_get_source (binding));
value = exp (value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]