[gimp] app: fix unhandled enumeration value warning in gimptextlayer.c
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix unhandled enumeration value warning in gimptextlayer.c
- Date: Tue, 18 Sep 2018 20:24:19 +0000 (UTC)
commit a84b57e67e2e929c595fcf4c9286916d76e443d3
Author: Ell <ell_se yahoo com>
Date: Tue Sep 18 15:59:01 2018 -0400
app: fix unhandled enumeration value warning in gimptextlayer.c
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 a3468d99d5..14d17d0204 100644
--- a/app/text/gimptextlayer.c
+++ b/app/text/gimptextlayer.c
@@ -637,8 +637,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)
@@ -647,6 +647,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;
@@ -654,12 +660,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]