Commit 8f877b62 authored by Matthieu Moy's avatar Matthieu Moy Committed by Tobias Ellinghaus

colorzones: don't reset strength (aka mix) on double-click

When double-clicking on a curve within the color zones module, the
module was internally reseting the "strength" parameter (displayed as
"mix" slider in the ui), but not moving the cursor, resulting in an
inconsistancy between what's shown in the GUI and what is applied to the

One way to fix this would be to update the GUI after the reset. However,
this "reset the mix slider on double-click" is undocumented and
confusing: a double-click on a curve panel should only reset the curve
being clicked, not other parameters. There's a reset button like on
every modules to do a global reset, and reseting the "mix" cursor can
still be done by double-clicking on the cursor itself.

(cherry picked from commit ef0bfbae)
parent 1a36e3e5
......@@ -922,7 +922,6 @@ static gboolean colorzones_button_press(GtkWidget *widget, GdkEventButton *event
p->equalizer_x[c->channel][k] = d->equalizer_x[c->channel][k];
p->equalizer_y[c->channel][k] = d->equalizer_y[c->channel][k];
p->strength = d->strength;
dt_dev_add_history_item(darktable.develop, self, TRUE);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment