mirror of https://github.com/GNOME/gimp.git
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:
parent
9c85236d55
commit
1cb0a49fa5
|
@ -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"
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue