summaryrefslogtreecommitdiff
path: root/pango/break-indic.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-24 00:42:48 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-26 08:00:04 -0400
commitd39ef1d6fc87f33cfdc1ce595e0e34e979e6e06c (patch)
tree47680e6489add5caa7510ce0691a70263f087315 /pango/break-indic.c
parent0178d0c9e532ba78900319048da83c2583d36647 (diff)
downloadpango-d39ef1d6fc87f33cfdc1ce595e0e34e979e6e06c.tar.gz
break-indic: Don't wipe out mandatory breaks
These are required for a conforming implementation.
Diffstat (limited to 'pango/break-indic.c')
-rw-r--r--pango/break-indic.c11
1 files changed, 7 insertions, 4 deletions
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