[gimp/gimp-2-10] app: fix unhandled enumeration value warning in gimptextlayer.c



commit 6f83f69e9a164b3db65b329688c26368a1710dcd
Author: Ell <ell_se yahoo com>
Date:   Tue Sep 18 15:59:01 2018 -0400

    app: fix unhandled enumeration value warning in gimptextlayer.c
    
    (cherry picked from commit a84b57e67e2e929c595fcf4c9286916d76e443d3)

 app/text/gimptextlayer.c | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/app/text/gimptextlayer.c b/app/text/gimptextlayer.c
index 026d3cc1a9..41c7e12453 100644
--- a/app/text/gimptextlayer.c
+++ b/app/text/gimptextlayer.c
@@ -634,8 +634,8 @@ gimp_text_layer_text_changed (GimpTextLayer *layer)
         {
           switch (old_base_dir)
             {
-            case GIMP_TEXT_DIRECTION_RTL:
             case GIMP_TEXT_DIRECTION_LTR:
+            case GIMP_TEXT_DIRECTION_RTL:
             case GIMP_TEXT_DIRECTION_TTB_LTR:
             case GIMP_TEXT_DIRECTION_TTB_LTR_UPRIGHT:
               switch (new_base_dir)
@@ -644,6 +644,12 @@ gimp_text_layer_text_changed (GimpTextLayer *layer)
                 case GIMP_TEXT_DIRECTION_TTB_RTL_UPRIGHT:
                   gimp_item_translate (item, -new_width, 0, FALSE);
                   break;
+
+                case GIMP_TEXT_DIRECTION_LTR:
+                case GIMP_TEXT_DIRECTION_RTL:
+                case GIMP_TEXT_DIRECTION_TTB_LTR:
+                case GIMP_TEXT_DIRECTION_TTB_LTR_UPRIGHT:
+                  break;
                 }
               break;
 
@@ -651,12 +657,16 @@ gimp_text_layer_text_changed (GimpTextLayer *layer)
             case GIMP_TEXT_DIRECTION_TTB_RTL_UPRIGHT:
               switch (new_base_dir)
                 {
-                case GIMP_TEXT_DIRECTION_RTL:
                 case GIMP_TEXT_DIRECTION_LTR:
+                case GIMP_TEXT_DIRECTION_RTL:
                 case GIMP_TEXT_DIRECTION_TTB_LTR:
                 case GIMP_TEXT_DIRECTION_TTB_LTR_UPRIGHT:
                   gimp_item_translate (item, old_width, 0, FALSE);
                   break;
+
+                case GIMP_TEXT_DIRECTION_TTB_RTL:
+                case GIMP_TEXT_DIRECTION_TTB_RTL_UPRIGHT:
+                  break;
                 }
               break;
             }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]