diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-03-29 19:18:44 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-03-29 19:18:44 +0000 |
commit | ce13859046ac37ba94c6a5727c221b0b97e90a9e (patch) | |
tree | 263f6548706be5acbd6ba91a71252904cb21c757 /pango/break.c | |
parent | 5ccc0c7aa5de2667a5e0da8c35387eb662c3edff (diff) | |
parent | b86ded710d391b78842c607962d9a2281596b862 (diff) | |
download | pango-ce13859046ac37ba94c6a5727c221b0b97e90a9e.tar.gz |
Merge branch 'misc-speedups' into 'master'
Misc speedups
See merge request GNOME/pango!306
Diffstat (limited to 'pango/break.c')
-rw-r--r-- | pango/break.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pango/break.c b/pango/break.c index fadf01d0..6b8e5c01 100644 --- a/pango/break.c +++ b/pango/break.c @@ -362,12 +362,15 @@ pango_default_break (const gchar *text, case G_UNICODE_PARAGRAPH_SEPARATOR: attrs[i].is_white = TRUE; break; - default: + case G_UNICODE_CONTROL: if (wc == '\t' || wc == '\n' || wc == '\r' || wc == '\f') attrs[i].is_white = TRUE; else attrs[i].is_white = FALSE; break; + default: + attrs[i].is_white = FALSE; + break; } /* Just few spaces have variable width. So explicitly mark them. |