summaryrefslogtreecommitdiff
path: root/pango/break-indic.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-26 12:09:26 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-08-26 12:09:26 +0000
commitbcf0fa27d6fd4177e02bac9bb417c3f695332676 (patch)
treee0b6c010fdf07af518dede6952ee928183b14f50 /pango/break-indic.c
parent6a33b14848ca7f1a33d601222b010a90eed5c048 (diff)
parent6688340072f4e93936260fe7110500e52a8ffcdb (diff)
downloadpango-bcf0fa27d6fd4177e02bac9bb417c3f695332676.tar.gz
Merge branch 'more-log-attr-things' into 'main'
Fixes and validation for log attrs See merge request GNOME/pango!442
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