1
0
mirror of https://gitlab.gnome.org/GNOME/evince synced 2024-06-28 13:44:46 +00:00

Update libgd to current master to fix #1242

Update libgd/gd-two-lines-renderer.c to latest libgd which
includes commit libgd@258c05b0 that fixes a Pango >= 1.44
regression causing #1242 issue.
This commit is contained in:
Nelson Benítez León 2023-01-08 00:01:38 +00:00
parent a0a2da02fa
commit 91aa9bfc4e

View File

@ -80,6 +80,17 @@ create_layout_with_attrs (GtkWidget *widget,
pango_layout_set_wrap (layout, PANGO_WRAP_CHAR);
}
#if PANGO_VERSION_CHECK (1, 44, 0)
{
PangoAttrList *attr_list = pango_attr_list_new ();
pango_attr_list_insert (attr_list, pango_attr_insert_hyphens_new (FALSE));
pango_layout_set_attributes (layout, attr_list);
pango_attr_list_unref (attr_list);
}
#endif
return layout;
}