mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Set boundary correctly in getPosNearX
The code that looks whether neighbor block has a different direction should look to the left or to the right depending on the direction of the current block. Fixes part of bug #10569
This commit is contained in:
parent
86ae7dad3f
commit
e3d252cd62
@ -1140,8 +1140,10 @@ pos_type TextMetrics::getPosNearX(Row const & row, int & x,
|
||||
* how boundary helps here.
|
||||
*/
|
||||
else if (pos == cit->endpos
|
||||
&& cit + 1 != row.end()
|
||||
&& cit->isRTL() != (cit + 1)->isRTL())
|
||||
&& ((!cit->isRTL() && cit + 1 != row.end()
|
||||
&& (cit + 1)->isRTL())
|
||||
|| (cit->isRTL() && cit != row.begin()
|
||||
&& !(cit - 1)->isRTL())))
|
||||
boundary = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user