[pango/pango2: 77/135] layout: Fix an oversight
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 77/135] layout: Fix an oversight
- Date: Fri, 18 Feb 2022 20:11:01 +0000 (UTC)
commit 74fac5b982a1fc97fcdf4e83fe794773b9509168
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jan 25 21:21:14 2022 -0500
layout: Fix an oversight
pango/pango-layout.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index e6587c0f..0214997e 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -1256,7 +1256,8 @@ pango_layout_set_tabs (PangoLayout *layout,
return;
g_clear_pointer (&layout->tabs, pango_tab_array_free);
- layout->tabs = pango_tab_array_copy (tabs);
+ if (tabs)
+ layout->tabs = pango_tab_array_copy (tabs);
g_object_notify_by_pspec (G_OBJECT (layout), props[PROP_TABS]);
layout_changed (layout);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]