Commit 3ec1647d authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

reverted fix for bug #141930. These hacks are there because the enum used

2004-06-28  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimplevelstool.c: reverted fix for bug #141930. These
	hacks are there because the enum used in levels doesn't match
	the enum used by the combo box and the histogram widget.
parent c1861260
2004-06-28 Michael Natterer <mitch@gimp.org>
* app/tools/gimplevelstool.c: reverted fix for bug #141930. These
hacks are there because the enum used in levels doesn't match
the enum used by the combo box and the histogram widget.
2004-06-28 Michael Natterer <mitch@gimp.org>
* app/tools/gimpclonetool.c (gimp_clone_tool_button_release):
......
......@@ -308,6 +308,9 @@ gimp_levels_tool_initialize (GimpTool *tool,
gimp_int_combo_box_set_active (GIMP_INT_COMBO_BOX (l_tool->channel_menu),
l_tool->channel);
if (! l_tool->color && l_tool->alpha)
l_tool->channel = 1;
levels_update (l_tool, ALL);
gimp_drawable_calculate_histogram (drawable, l_tool->hist);
......@@ -907,6 +910,10 @@ levels_channel_callback (GtkWidget *widget,
gimp_histogram_view_set_channel (GIMP_HISTOGRAM_VIEW (tool->hist_view),
tool->channel);
/* FIXME: hack */
if (! tool->color && tool->alpha)
tool->channel = (tool->channel > 1) ? 2 : 1;
levels_update (tool, ALL);
}
......
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