gimp r24577 - in trunk: . app/tools
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r24577 - in trunk: . app/tools
- Date: Wed, 9 Jan 2008 13:47:52 +0000 (GMT)
Author: mitch
Date: Wed Jan 9 13:47:52 2008
New Revision: 24577
URL: http://svn.gnome.org/viewvc/gimp?rev=24577&view=rev
Log:
2008-01-09 Michael Natterer <mitch gimp org>
* app/tools/gimplevelstool.c (gimp_levels_tool_map): fix alpha
handling on greyscale images.
Modified:
trunk/ChangeLog
trunk/app/tools/gimplevelstool.c
Modified: trunk/app/tools/gimplevelstool.c
==============================================================================
--- trunk/app/tools/gimplevelstool.c (original)
+++ trunk/app/tools/gimplevelstool.c Wed Jan 9 13:47:52 2008
@@ -280,9 +280,15 @@
channel <= GIMP_HISTOGRAM_ALPHA;
channel++)
{
- gegl_node_set (image_map_tool->operation,
- "channel", channel,
- NULL);
+ /* FIXME: hack */
+ if (! tool->color && channel == 1)
+ gegl_node_set (image_map_tool->operation,
+ "channel", GIMP_HISTOGRAM_ALPHA,
+ NULL);
+ else
+ gegl_node_set (image_map_tool->operation,
+ "channel", channel,
+ NULL);
gegl_node_set (image_map_tool->operation,
"gamma", levels->gamma[channel],
@@ -291,6 +297,10 @@
"low-output", levels->low_output[channel] / 255.0,
"high-output", levels->high_output[channel] / 255.0,
NULL);
+
+ /* FIXME: hack */
+ if (! tool->color && channel == 1)
+ break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]