diff options
author | Havoc Pennington <hp@redhat.com> | 2001-02-16 23:48:04 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-02-16 23:48:04 +0000 |
commit | f261f4ca89bade8bf24ef5a76dbb68bd113cc748 (patch) | |
tree | 365f2cf5966b1606ec5f0af62c74839f2a4efa79 | |
parent | 6c11912ab8c1797bcf0209a6e47a86653f561ecf (diff) | |
download | pango-f261f4ca89bade8bf24ef5a76dbb68bd113cc748.tar.gz |
fix *trailing = FALSE to read *trailing = 0
2001-02-15 Havoc Pennington <hp@redhat.com>
* pango/pango-layout.c (pango_layout_line_x_to_index): fix
*trailing = FALSE to read *trailing = 0
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.pre-1-0 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-1-10 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-1-2 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-1-4 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-1-6 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-1-8 | 5 | ||||
-rw-r--r-- | pango/pango-layout.c | 7 |
8 files changed, 39 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2001-02-15 Havoc Pennington <hp@redhat.com> + + * pango/pango-layout.c (pango_layout_line_x_to_index): fix + *trailing = FALSE to read *trailing = 0 + 2001-02-13 Havoc Pennington <hp@redhat.com> * pango/pango-layout.c (pango_layout_line_get_x_ranges): fix diff --git a/ChangeLog.pre-1-0 b/ChangeLog.pre-1-0 index 34091356..b4f780fd 100644 --- a/ChangeLog.pre-1-0 +++ b/ChangeLog.pre-1-0 @@ -1,3 +1,8 @@ +2001-02-15 Havoc Pennington <hp@redhat.com> + + * pango/pango-layout.c (pango_layout_line_x_to_index): fix + *trailing = FALSE to read *trailing = 0 + 2001-02-13 Havoc Pennington <hp@redhat.com> * pango/pango-layout.c (pango_layout_line_get_x_ranges): fix diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index 34091356..b4f780fd 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,3 +1,8 @@ +2001-02-15 Havoc Pennington <hp@redhat.com> + + * pango/pango-layout.c (pango_layout_line_x_to_index): fix + *trailing = FALSE to read *trailing = 0 + 2001-02-13 Havoc Pennington <hp@redhat.com> * pango/pango-layout.c (pango_layout_line_get_x_ranges): fix diff --git a/ChangeLog.pre-1-2 b/ChangeLog.pre-1-2 index 34091356..b4f780fd 100644 --- a/ChangeLog.pre-1-2 +++ b/ChangeLog.pre-1-2 @@ -1,3 +1,8 @@ +2001-02-15 Havoc Pennington <hp@redhat.com> + + * pango/pango-layout.c (pango_layout_line_x_to_index): fix + *trailing = FALSE to read *trailing = 0 + 2001-02-13 Havoc Pennington <hp@redhat.com> * pango/pango-layout.c (pango_layout_line_get_x_ranges): fix diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4 index 34091356..b4f780fd 100644 --- a/ChangeLog.pre-1-4 +++ b/ChangeLog.pre-1-4 @@ -1,3 +1,8 @@ +2001-02-15 Havoc Pennington <hp@redhat.com> + + * pango/pango-layout.c (pango_layout_line_x_to_index): fix + *trailing = FALSE to read *trailing = 0 + 2001-02-13 Havoc Pennington <hp@redhat.com> * pango/pango-layout.c (pango_layout_line_get_x_ranges): fix diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6 index 34091356..b4f780fd 100644 --- a/ChangeLog.pre-1-6 +++ b/ChangeLog.pre-1-6 @@ -1,3 +1,8 @@ +2001-02-15 Havoc Pennington <hp@redhat.com> + + * pango/pango-layout.c (pango_layout_line_x_to_index): fix + *trailing = FALSE to read *trailing = 0 + 2001-02-13 Havoc Pennington <hp@redhat.com> * pango/pango-layout.c (pango_layout_line_get_x_ranges): fix diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8 index 34091356..b4f780fd 100644 --- a/ChangeLog.pre-1-8 +++ b/ChangeLog.pre-1-8 @@ -1,3 +1,8 @@ +2001-02-15 Havoc Pennington <hp@redhat.com> + + * pango/pango-layout.c (pango_layout_line_x_to_index): fix + *trailing = FALSE to read *trailing = 0 + 2001-02-13 Havoc Pennington <hp@redhat.com> * pango/pango-layout.c (pango_layout_line_get_x_ranges): fix diff --git a/pango/pango-layout.c b/pango/pango-layout.c index 230e2d0a..3a58860a 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -2904,7 +2904,7 @@ pango_layout_line_x_to_index (PangoLayoutLine *line, if (shape_set) { - *trailing = FALSE; + *trailing = 0; } else { @@ -2953,13 +2953,14 @@ pango_layout_line_x_to_index (PangoLayoutLine *line, * The array will be of length 2*@n_ranges, with each * range including the pixels from (*ranges)[2*n] to * (*ranges)[2*n + 1] - 1. This array must be freed - * with g_free. + * with g_free. The pixels are in layout coordinates. * @n_ranges: The number of ranges stored in @ranges. * * Get a list of visual ranges corresponding to a given logical range. * This list is not necessarily minimal - there may be consecutive * ranges which are adjacent. The ranges will be sorted from left to - * right. + * right. The ranges are with respect to the left edge of the entire + * layout, not with respect to the line. **/ void pango_layout_line_get_x_ranges (PangoLayoutLine *line, |