diff options
author | Elliot Lee <sopwith@redhat.com> | 2000-08-09 02:37:44 +0000 |
---|---|---|
committer | Elliot Lee <sopwith@src.gnome.org> | 2000-08-09 02:37:44 +0000 |
commit | 6d8b209bb67d3abd57de313548716710e7bfca87 (patch) | |
tree | a7332918d861405dce947e3c7e4c495564541de0 /pango/modules.c | |
parent | 0d0b47ba872c90fbad6312c77c12b7380f27ab6c (diff) | |
download | pango-6d8b209bb67d3abd57de313548716710e7bfca87.tar.gz |
Fix incorrect list rearrangement that caused some segfaults. Pay attention
2000-08-08 Elliot Lee <sopwith@redhat.com>
* pango/modules.c: Fix incorrect list rearrangement that caused some segfaults.
* pango/pango-layout.c (pango_layout_line_x_to_index): Pay attention to shape attributes
(not perfect since the layout of chars inside a shaped run is unknown, but gives start
index of the chars in the run).
Diffstat (limited to 'pango/modules.c')
-rw-r--r-- | pango/modules.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/pango/modules.c b/pango/modules.c index 5d3f9cb9..c1ab44a5 100644 --- a/pango/modules.c +++ b/pango/modules.c @@ -115,12 +115,9 @@ pango_find_map (const char *lang, * for speed next time around if we had to do * any failing strcmps. */ - if (tmp_list->next) - tmp_list->next->prev = tmp_list->prev; - tmp_list->prev->next = tmp_list->next; - tmp_list->next = maps; - tmp_list->prev = NULL; - maps = tmp_list; + maps = g_list_remove_link(maps, tmp_list); + maps = g_list_prepend(maps, tmp_list->data); + g_list_free_1(tmp_list); } return map_info->map; |