summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-11-13 16:27:38 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-11-13 16:27:38 +0000
commit82599ca5ee42291ec824a1865c454e8dbc38ec80 (patch)
treedb8b7a76d7b35f16f056833ad3fdc1e763a52964 /pango
parent6101f21df7e260e25a18bc8918a7429378cd85f3 (diff)
parent4db8ff2ea3b2b20c9b38670a3c49e73125f1673e (diff)
downloadpango-82599ca5ee42291ec824a1865c454e8dbc38ec80.tar.gz
Merge branch 'fix-itemize-crash' into 'main'
Fix a bug in Small Caps handling Closes #627 See merge request GNOME/pango!505
Diffstat (limited to 'pango')
-rw-r--r--pango/itemize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/itemize.c b/pango/itemize.c
index 82c737cc..77e86507 100644
--- a/pango/itemize.c
+++ b/pango/itemize.c
@@ -1380,7 +1380,7 @@ split_item_for_variant (const char *text,
/* p0 .. p is a lowercase segment */
if (p < end)
{
- new_item = pango_item_split (item, p - p0, g_utf8_strlen (p, p - p0));
+ new_item = pango_item_split (item, p - p0, g_utf8_strlen (p0, p - p0));
list_item->data = new_item;
list_item = g_list_insert_before (list_item, list_item->next, item);
list_item = list_item->next;
@@ -1429,7 +1429,7 @@ split_item_for_variant (const char *text,
/* p0 .. p is a uppercase segment */
if (p < end)
{
- new_item = pango_item_split (item, p - p0, g_utf8_strlen (p, p - p0));
+ new_item = pango_item_split (item, p - p0, g_utf8_strlen (p0, p - p0));
list_item->data = new_item;
list_item = g_list_insert_before (list_item, list_item->next, item);
list_item = list_item->next;