[gimp/goat-invasion] gimpbucketfilltool: Fix switch block always falling through to pattern fill
- From: Mikael Magnusson <mikachu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion] gimpbucketfilltool: Fix switch block always falling through to pattern fill
- Date: Wed, 4 Apr 2012 15:55:46 +0000 (UTC)
commit b2e76c67f91f6af78ef5aa441210fff9b2d78bcc
Author: Mikael Magnusson <mikachu src gnome org>
Date: Wed Apr 4 17:54:40 2012 +0200
gimpbucketfilltool: Fix switch block always falling through to pattern fill
app/tools/gimpbucketfilltool.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/app/tools/gimpbucketfilltool.c b/app/tools/gimpbucketfilltool.c
index 87237f0..a35a83d 100644
--- a/app/tools/gimpbucketfilltool.c
+++ b/app/tools/gimpbucketfilltool.c
@@ -187,9 +187,15 @@ gimp_bucket_fill_tool_button_release (GimpTool *tool,
switch (options->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;
}
gimp_edit_fill (image, drawable, context, fill_type,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]