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!
This commit is contained in:
Ell
2020-04-20 18:42:17 +03:00
parent 8caef4ea0b
commit 5dc1572b01

View File

@ -90,7 +90,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);