Bug 198759
| Summary: | [PATCH] wrong cursor movement between lines | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Akira TAGOH <tagoh> | ||||||
| Component: | firefox | Assignee: | Christopher Aillon <caillon> | ||||||
| Status: | CLOSED RAWHIDE | QA Contact: | |||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | rawhide | CC: | aalam, behdad, eng-i18n-bugs, wtogami | ||||||
| Target Milestone: | --- | Keywords: | i18n | ||||||
| Target Release: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2006-09-12 02:52:16 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 150223 | ||||||||
| Attachments: |
|
||||||||
|
Description
Akira TAGOH
2006-07-13 11:05:01 UTC
I can reproduce the bug as well. Created attachment 135207 [details]
proposed patch
after some debugging, this issue was introduced by the misuse of the return
value from pango_layout_xy_to_index. after applying this patch, it works fine.
The patch has a couple of problems. Just removing that "if (found)" block completely fixes the problem. You mean "if (!found)"? it just works without even "if (!found)" block though, I'm not quite sure what problems it has. The problems the old patch had were that it got the direction for the context, but it should have gotten the context for the line as they could be different. Also, your getting the direction didn't actually effect the program at all since you did the same thing for both the if (dir == PANGO_DIRECTION_LTR) part and the else part. But all that said, there was no adjustment needed. Pango does the right thing with the positioning, and the return value is more informative than anything in this specific case. Created attachment 135626 [details]
Better Patch
Better patch. Thanks for tracking the main issue down, tagoh!
I see. you're right. getting the direction didn't effect anything indeed. and your patch is working fine. Thanks for the clarification. Fixed in latest versions in rawhide. |