Commit 439c5a78 authored by Michael Natterer's avatar Michael Natterer 😴
Browse files

pdb: add missing breaks in switch() so we don't always pattern-fill

parent 8851ec0b
......@@ -593,13 +593,21 @@ edit_bucket_fill_invoker (GimpProcedure *procedure,
if (! gimp_channel_is_empty (gimp_image_get_mask (image)))
{
GimpFillType fill_type;
GimpFillType fill_type = GIMP_FG_BUCKET_FILL;
switch (fill_mode)
{
case GIMP_FG_BUCKET_FILL: fill_type = GIMP_FOREGROUND_FILL;
case GIMP_BG_BUCKET_FILL: fill_type = GIMP_BACKGROUND_FILL;
case GIMP_PATTERN_BUCKET_FILL: fill_type = GIMP_PATTERN_FILL;
case GIMP_FG_BUCKET_FILL:
fill_type = GIMP_FOREGROUND_FILL;
break;
case GIMP_BG_BUCKET_FILL:
fill_type = GIMP_BACKGROUND_FILL;
break;
case GIMP_PATTERN_BUCKET_FILL:
fill_type = GIMP_PATTERN_FILL;
break;
}
success = gimp_edit_fill (image, drawable, context, fill_type,
......
......@@ -633,13 +633,21 @@ HELP
if (! gimp_channel_is_empty (gimp_image_get_mask (image)))
{
GimpFillType fill_type;
GimpFillType fill_type = GIMP_FG_BUCKET_FILL;
switch (fill_mode)
{
case GIMP_FG_BUCKET_FILL: fill_type = GIMP_FOREGROUND_FILL;
case GIMP_BG_BUCKET_FILL: fill_type = GIMP_BACKGROUND_FILL;
case GIMP_PATTERN_BUCKET_FILL: fill_type = GIMP_PATTERN_FILL;
case GIMP_FG_BUCKET_FILL:
fill_type = GIMP_FOREGROUND_FILL;
break;
case GIMP_BG_BUCKET_FILL:
fill_type = GIMP_BACKGROUND_FILL;
break;
case GIMP_PATTERN_BUCKET_FILL:
fill_type = GIMP_PATTERN_FILL;
break;
}
success = gimp_edit_fill (image, drawable, context, fill_type,
......
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