diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-01-25 21:21:14 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-01-25 22:10:10 -0500 |
commit | cb699f4966eb8c8eaac886fa8b35f531ddf4b257 (patch) | |
tree | 10b60b7e911aead994bcf80c4b7446446a12740d /pango | |
parent | d66a420e6bcaa19fdc3361e31c16679355328afc (diff) | |
download | pango-cb699f4966eb8c8eaac886fa8b35f531ddf4b257.tar.gz |
layout: Fix an oversight
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pango-layout.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |