[pango/more-log-attr-things: 2/6] break-indic: Don't wipe out mandatory breaks
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/more-log-attr-things: 2/6] break-indic: Don't wipe out mandatory breaks
- Date: Thu, 26 Aug 2021 05:55:36 +0000 (UTC)
commit 473f463b5733ec2168d9a7a4bbf39c99e2937f58
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Aug 24 00:42:48 2021 -0400
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(-)
---
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]