From d39ef1d6fc87f33cfdc1ce595e0e34e979e6e06c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 24 Aug 2021 00:42:48 -0400 Subject: break-indic: Don't wipe out mandatory breaks These are required for a conforming implementation. --- pango/break-indic.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'pango') diff --git a/pango/break-indic.c b/pango/break-indic.c index bb44d64c..64f300a9 100644 --- a/pango/break-indic.c +++ b/pango/break-indic.c @@ -94,10 +94,13 @@ static void not_cursor_position (PangoLogAttr *attr) { - attr->is_cursor_position = FALSE; - attr->is_char_break = FALSE; - attr->is_line_break = FALSE; - attr->is_mandatory_break = FALSE; + if (!attr->is_mandatory_break) + { + attr->is_cursor_position = FALSE; + attr->is_char_break = FALSE; + attr->is_line_break = FALSE; + attr->is_mandatory_break = FALSE; + } } static void -- cgit v1.2.1