[pango/line-breaker: 17/18] linebreaker: small fixup
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/line-breaker: 17/18] linebreaker: small fixup
- Date: Sat, 15 Jan 2022 15:37:30 +0000 (UTC)
commit a1885d98015a322e1a2566965e587f3d4bb2e050
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jan 15 10:33:01 2022 -0500
linebreaker: small fixup
pango/pango-line-breaker.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/pango/pango-line-breaker.c b/pango/pango-line-breaker.c
index bf48744c..68c4ca98 100644
--- a/pango/pango-line-breaker.c
+++ b/pango/pango-line-breaker.c
@@ -316,6 +316,9 @@ get_resolved_dir (PangoLineBreaker *self)
ensure_items (self);
+ if (!self->data)
+ return PANGO_DIRECTION_NEUTRAL;
+
switch (self->data->direction)
{
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]