Commit 1cb0a49f authored by Stanislav Brabec's avatar Stanislav Brabec Committed by Stanislav Brabec

Fixed black_level range. Valid range should be -1..255, not 0..256,

2001-03-01  Stanislav Brabec  <utx@penguin.cz>

        * plugins/common/despeckle.c: Fixed black_level range.
        Valid range should be -1..255, not 0..256, because comaparison
	is > and <=. Bug became visible after last Martin Weber's fix.
        There must be for both black and white levels one extra value
	to cover all numbers 0..255.
parent 9c85236d
2001-03-01 Stanislav Brabec <utx@penguin.cz>
* plugins/common/despeckle.c: Fixed black_level range.
Valid range should be -1..255, not 0..256, because comaparison
is > and <=. Bug became visible after last Martin Weber's fix.
There must be for both black and white levels one extra value
to cover all numbers 0..255.
2001-03-01 Michael Natterer <mitch@gimp.org>
* app/tools/crop.[ch]: we need to override GimpDrawTool's "draw"
......
......@@ -756,7 +756,7 @@ despeckle_dialog (void)
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, 1,
_("Black Level:"), 100, 0,
black_level, 0, 256, 1, 8, 0,
black_level, -1, 255, 1, 8, 0,
TRUE, 0, 0,
NULL, NULL);
gtk_signal_connect (GTK_OBJECT (adj), "value_changed",
......
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