From b4667287a5efffc21eb7b5c8dec6b2a4c7be8a75 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 3 Mar 2025 01:10:09 -0700 Subject: [PATCH] [hvgl] Micro-optimize --- src/hb-aat-var-hvgl-table.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-aat-var-hvgl-table.cc b/src/hb-aat-var-hvgl-table.cc index 2f2dd2536..9ded0be44 100644 --- a/src/hb-aat-var-hvgl-table.cc +++ b/src/hb-aat-var-hvgl-table.cc @@ -316,7 +316,7 @@ PartShape::get_path_at (const hb_hvgl_context_t *c, transform.transform_point (x0, y0); if (c->draw_session) c->draw_session->move_to ((float) x0, (float) y0); - if (c->extents) + else if (c->extents) c->extents->add_point ((float) x0, (float) y0); for (unsigned i = start; i < end; i++) { @@ -332,7 +332,7 @@ PartShape::get_path_at (const hb_hvgl_context_t *c, transform.transform_point (x2, y2); if (c->draw_session) c->draw_session->quadratic_to ((float) x1, (float) y1, (float) x2, (float) y2); - if (c->extents) + else if (c->extents) { c->extents->add_point ((float) x1, (float) y1); c->extents->add_point ((float) x2, (float) y2);