]> git.lyx.org Git - features.git/commit
Fix a crash which occurs when RTL flag is turned on.
authorJosé Matox <jamatos@lyx.org>
Thu, 17 May 2007 21:53:11 +0000 (21:53 +0000)
committerJosé Matox <jamatos@lyx.org>
Thu, 17 May 2007 21:53:11 +0000 (21:53 +0000)
commit4729f795bc2e43f5123e589c94613fcf82a10d29
tree0e69a0f927d71c67a35bc2ee542d9a9b05303db2
parent708ebc04f66e07a9157bf58ebd9ed5d51eb7d738
Fix a crash which occurs when RTL flag is turned on.

The crash was being caused by the fact that when moving back from the
beginning of the line to the previous line (by pressing RIGHT in an
RTL paragraph, or LEFT in an LTR one), Bidi metrics for the new line
do not yet exist, but an attempt is made to access them.

Basically, this patch was created by trying to "symmetrically" copy
cursorRight (which seems to work well) to cursorLeft (which was
problematic).

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