From 86fcd4fe98448a564fa72476ddea9d56acae1efa Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 3 Feb 2022 12:54:32 -0600 Subject: [PATCH] [draw] Simplify start_path --- src/hb-draw.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-draw.hh b/src/hb-draw.hh index e7a4a8a26..9f20ba9d0 100644 --- a/src/hb-draw.hh +++ b/src/hb-draw.hh @@ -164,7 +164,7 @@ struct draw_helper_t void start_path () { - if (st.path_open) end_path (); + assert (!st.path_open); st.path_open = true; funcs->move_to (draw_data, st.path_start_x, st.path_start_y); }