[gimp] gimpbucketfilltool: Fix switch block always falling through to pattern fill



commit 3406bf0b69f7e75f2bb80e54c7556a1633d9ae98
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]