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.
This commit is contained in:
Stanislav Brabec 2001-03-01 18:46:35 +00:00 committed by Stanislav Brabec
parent 9c85236d55
commit 1cb0a49fa5
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
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"

View File

@ -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",