mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
Rename a variable masking index()
The maintainer CFLAGS found another masking of the index() function by an helpless variable.
This commit is contained in:
parent
805b88d4c0
commit
5d5b93bd2a
@ -826,7 +826,7 @@ cursor_paint (ClutterText *self)
|
||||
gint n_ranges;
|
||||
gint *ranges;
|
||||
gint i;
|
||||
gint index;
|
||||
gint index_;
|
||||
gint maxindex;
|
||||
ClutterUnit y, height;
|
||||
|
||||
@ -838,10 +838,10 @@ cursor_paint (ClutterText *self)
|
||||
pango_layout_line_get_x_ranges (line, start_index, end_index,
|
||||
&ranges,
|
||||
&n_ranges);
|
||||
pango_layout_line_x_to_index (line, 0, &index, NULL);
|
||||
pango_layout_line_x_to_index (line, 0, &index_, NULL);
|
||||
|
||||
clutter_text_position_to_coords (self,
|
||||
bytes_to_offset (utf8, index),
|
||||
bytes_to_offset (utf8, index_),
|
||||
NULL, &y, &height);
|
||||
|
||||
for (i = 0; i < n_ranges; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user