]> git.lyx.org Git - features.git/commit
Fix bug #6161: Wrong cursor position in bidi text.
authorVincent van Ravesteijn <vfr@lyx.org>
Fri, 20 Nov 2009 22:28:51 +0000 (22:28 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Fri, 20 Nov 2009 22:28:51 +0000 (22:28 +0000)
commit08feb0e14cd9733d1d921344f1dc67e04a2bebb0
tree0302b08b3131540068a553a986ec79a270a439ee
parente4e49f89789dc8147cd8aa7a248ae3e3dbed379d
Fix bug #6161: Wrong cursor position in bidi text.

If the first character is a separator, we are in RTL text. This character will not be painted on screen and thus we should not count it and skip to the next.

This bug pretty much destroyed cursor placement in RTL text on a row with large gaps.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32116 a592a061-630c-0410-9148-cb99ea01b6c8
src/TextMetrics.cpp