diff --git a/ChangeLog b/ChangeLog index 5f5e797f47..05d23e0f88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-06-05 Sven Neumann + + * tools/pdbgen/pdb/selection.pdb: fixed documentation of + gimp-selection-sharpen (bug #343911). + + * libgimp/gimpselection_pdb.c: regenerated. + 2006-06-05 Sven Neumann * app/paint-funcs/paint-funcs.[ch] diff --git a/app/pdb/selection_cmds.c b/app/pdb/selection_cmds.c index 21b586b6e4..ab760e912c 100644 --- a/app/pdb/selection_cmds.c +++ b/app/pdb/selection_cmds.c @@ -698,7 +698,7 @@ register_selection_procs (GimpPDB *pdb) gimp_procedure_set_static_strings (procedure, "gimp-selection-invert", "Invert the selection mask.", - "This procedure inverts the selection mask. For every pixel in the selection channel, its new value is calculated as (255 - old_value).", + "This procedure inverts the selection mask. For every pixel in the selection channel, its new value is calculated as (255 - old-value).", "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -720,7 +720,7 @@ register_selection_procs (GimpPDB *pdb) gimp_procedure_set_static_strings (procedure, "gimp-selection-sharpen", "Sharpen the selection mask.", - "This procedure sharpens the selection mask. For every pixel in the selection channel, if the value is > 0, the new pixel is assigned a value of 255. This removes any \"anti-aliasing\" that might exist in the selection mask's boundary.", + "This procedure sharpens the selection mask. For every pixel in the selection channel, if the value is > 127, the new pixel is assigned a value of 255. This removes any \"anti-aliasing\" that might exist in the selection mask's boundary.", "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/libgimp/gimpselection_pdb.c b/libgimp/gimpselection_pdb.c index d859231b66..8748458bb0 100644 --- a/libgimp/gimpselection_pdb.c +++ b/libgimp/gimpselection_pdb.c @@ -241,7 +241,7 @@ _gimp_selection_float (gint32 drawable_ID, * Invert the selection mask. * * This procedure inverts the selection mask. For every pixel in the - * selection channel, its new value is calculated as (255 - old_value). + * selection channel, its new value is calculated as (255 - old-value). * * Returns: TRUE on success. */ @@ -271,9 +271,9 @@ gimp_selection_invert (gint32 image_ID) * Sharpen the selection mask. * * This procedure sharpens the selection mask. For every pixel in the - * selection channel, if the value is > 0, the new pixel is assigned - * a value of 255. This removes any \"anti-aliasing\" that might exist - * in the selection mask's boundary. + * selection channel, if the value is > 127, the new pixel is + * assigned a value of 255. This removes any \"anti-aliasing\" that + * might exist in the selection mask's boundary. * * Returns: TRUE on success. */ diff --git a/tools/pdbgen/pdb/selection.pdb b/tools/pdbgen/pdb/selection.pdb index cdca20cdd3..b7982a91d2 100644 --- a/tools/pdbgen/pdb/selection.pdb +++ b/tools/pdbgen/pdb/selection.pdb @@ -206,7 +206,7 @@ sub selection_invert { $help = <<'HELP'; This procedure inverts the selection mask. For every pixel in the selection -channel, its new value is calculated as (255 - old_value). +channel, its new value is calculated as (255 - old-value). HELP &std_pdb_misc; @@ -230,8 +230,9 @@ sub selection_sharpen { $help = <<'HELP'; This procedure sharpens the selection mask. For every pixel in the selection -channel, if the value is > 0, the new pixel is assigned a value of 255. This -removes any "anti-aliasing" that might exist in the selection mask's boundary. +channel, if the value is > 127, the new pixel is assigned a value of 255. +This removes any "anti-aliasing" that might exist in the selection mask's +boundary. HELP &std_pdb_misc; @@ -254,8 +255,8 @@ sub selection_all { $blurb = 'Select all of the image.'; $help = <<'HELP'; -This procedure sets the selection mask to completely encompass the image. Every -pixel in the selection channel is set to 255. +This procedure sets the selection mask to completely encompass the image. +Every pixel in the selection channel is set to 255. HELP &std_pdb_misc;