bug of "pango_layout_move_cursor_visually"
- From: 王旭光 <ninesunqian 163 com>
- To: gtk-i18n-list <gtk-i18n-list gnome org>
- Subject: bug of "pango_layout_move_cursor_visually"
- Date: Tue, 11 Aug 2009 16:05:52 +0800 (CST)
I find a bug of "pango_layout_move_cursor_visually":
the layout text is "012345" , I move cursor from (index:100, trailing:100) to left. I first get (5, 5). I think it should be (5, 1), that is the rightest position.
the code is:
int index = 100;
int trailing = 100;
int newIndex = 5;
int newTrailing = 5;
while (newIndex != -1)
{
pango_layout_move_cursor_visually (layout, true, index, trailing, -1, &newIndex, &newTrailing);
MyTrace ("[%d, %d]\n", newIndex, newTrailing);
index = newIndex;
trailing = newTrailing ;
}
没有广告的终身免费邮箱,www.yeah.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]