[pango/line-breaker: 1/2] layout: Fix an oversight
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/line-breaker: 1/2] layout: Fix an oversight
- Date: Wed, 26 Jan 2022 03:10:17 +0000 (UTC)
commit cb699f4966eb8c8eaac886fa8b35f531ddf4b257
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]