allow testing the end position
2001-10-03 Havoc Pennington <hp@redhat.com> * gtk/gtktextiter.c (test_log_attrs): allow testing the end position * gtk/gtktextbuffer.c (compute_log_attrs): update for pango changes * tests/testtextbuffer.c (logical_motion_tests): updates
This commit is contained in:
committed by
Havoc Pennington
parent
264afe83f8
commit
77dc57e960
@ -3419,11 +3419,15 @@ compute_log_attrs (const GtkTextIter *iter,
|
||||
if (char_lenp)
|
||||
*char_lenp = char_len;
|
||||
|
||||
attrs = g_new (PangoLogAttr, char_len);
|
||||
|
||||
attrs = g_new (PangoLogAttr, char_len + 1);
|
||||
|
||||
/* FIXME we need to follow PangoLayout and allow different language
|
||||
* tags within the paragraph
|
||||
*/
|
||||
pango_get_log_attrs (paragraph, byte_len, -1,
|
||||
gtk_text_iter_get_language (&start),
|
||||
attrs);
|
||||
attrs,
|
||||
char_len + 1);
|
||||
|
||||
g_free (paragraph);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user