After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 591733 - pango_layout_move_cursor_visually() bug?
pango_layout_move_cursor_visually() bug?
Status: RESOLVED OBSOLETE
Product: pango
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2009-08-13 18:42 UTC by Behdad Esfahbod
Modified: 2018-05-22 12:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Behdad Esfahbod 2009-08-13 18:42:05 UTC
Reported on the mailing list:


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 ;
                }
Comment 1 GNOME Infrastructure Team 2018-05-22 12:52:20 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/pango/issues/161.