diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2013-06-29 14:43:23 +0200 |
---|---|---|
committer | Bosdonnat Cedric <cedric.bosdonnat@free.fr> | 2013-07-01 13:44:23 +0000 |
commit | 6ccc588a522f1068706fe05f5c819e488b6628eb (patch) | |
tree | fd1fc471fde76c69c46a6217a2ace7909b6630bc /include | |
parent | 22f2ad0088d57fc9e3a0bd8b975a5c549810fa7d (diff) |
Fix jitter when editing RTL text
When drawing right aligned text, rounding errors in the position
returned by GetDrawPosition() cause the right margin of the text to
change whenever text width changes causing "jumping letters" effect. So
here we calculate the drawing position relative to the right margin on
our own to avoid the rounding errors. That is basically a hack, and it
should go away if one day we managed to get rid of those rounding
errors.
Continue using GetDrawPosition() for non-right aligned text, to minimize
any unforeseen side effects.
Change-Id: Ia095a17a41f723f5fb7afc99df4250262e9a0051
Reviewed-on: https://gerrit.libreoffice.org/4618
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions