summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2001-02-16 23:48:04 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-02-16 23:48:04 +0000
commitf261f4ca89bade8bf24ef5a76dbb68bd113cc748 (patch)
tree365f2cf5966b1606ec5f0af62c74839f2a4efa79 /pango
parent6c11912ab8c1797bcf0209a6e47a86653f561ecf (diff)
downloadpango-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
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-layout.c7
1 files changed, 4 insertions, 3 deletions
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,