[dia] custom-object: add missing breaks
- From: Zander <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] custom-object: add missing breaks
- Date: Fri, 13 Dec 2019 01:04:37 +0000 (UTC)
commit 5718219d4f7e5970f78740033bf10d95d3fd5fd1
Author: Zander Brown <zbrown gnome org>
Date: Fri Dec 13 00:54:57 2019 +0000
custom-object: add missing breaks
Fix https://gitlab.gnome.org/GNOME/dia/issues/440
objects/custom/custom_object.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/objects/custom/custom_object.c b/objects/custom/custom_object.c
index 4f25d69e..3e4b5142 100644
--- a/objects/custom/custom_object.c
+++ b/objects/custom/custom_object.c
@@ -668,6 +668,7 @@ custom_distance_from (Custom *custom, Point *point)
transform_coord (custom,
&el->path.points[i].p1,
&g_array_index (barr, BezPoint, i).p1);
+ break;
default:
g_return_val_if_reached (G_MAXFLOAT);
}
@@ -693,6 +694,7 @@ custom_distance_from (Custom *custom, Point *point)
transform_coord (custom,
&el->path.points[i].p1,
&g_array_index (barr, BezPoint, i).p1);
+ break;
default:
g_return_val_if_reached (G_MAXFLOAT);
}
@@ -818,6 +820,7 @@ custom_move_handle (Custom *custom,
case HANDLE_MOVE_CREATE : /* silence gcc */
case HANDLE_MOVE_CREATE_FINAL : /* silence gcc */
custom_adjust_scale (custom, handle, to, cp, reason, modifiers);
+ break;
default:
g_return_val_if_reached (NULL);
}
@@ -1125,6 +1128,7 @@ custom_draw_element (GraphicElement *el,
case BEZ_LINE_TO:
transform_coord (custom, &el->path.points[i].p1,
&g_array_index (barr, BezPoint, i).p1);
+ break;
default:
g_return_if_reached ();
}
@@ -1151,6 +1155,7 @@ custom_draw_element (GraphicElement *el,
transform_coord (custom,
&el->path.points[i].p1,
&g_array_index (barr, BezPoint, i).p1);
+ break;
default:
g_return_if_reached ();
}
@@ -1525,6 +1530,7 @@ custom_update_data(Custom *custom, AnchorShape horiz, AnchorShape vert)
case BEZ_LINE_TO:
transform_coord (custom, &el->path.points[i].p1,
&g_array_index (barr, BezPoint, i).p1);
+ break;
default:
g_return_if_reached ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]