From c98bb4cf9c2d73a78773ea9547865fbeaa1ecaff Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 2 Mar 2023 13:18:06 -0700 Subject: [PATCH] [justify] Fix up after recent changes Oops. --- src/hb-shape.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-shape.cc b/src/hb-shape.cc index 38d3aaceb..52047877d 100644 --- a/src/hb-shape.cc +++ b/src/hb-shape.cc @@ -335,7 +335,7 @@ hb_shape_justify (hb_font_t *font, shaper_list)) return false; yb = (double) buffer_advance (buffer); - if (yb <= 0) + if (yb <= (double) max_target_advance) { *advance = (float) yb; return true; @@ -354,7 +354,7 @@ hb_shape_justify (hb_font_t *font, shaper_list)) return false; ya = (double) buffer_advance (buffer); - if (ya >= 0) + if (ya >= (double) min_target_advance) { *advance = (float) ya; return true;