mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
Fixup e1261817
: place cursor correctly in RtL
In an RtL paragraph, the cursor should be placed to the right of the end-of-paragraph indicator.
This commit is contained in:
parent
97ccb8c8c9
commit
ee5dcc9d47
@ -728,10 +728,9 @@ Row::findElement(pos_type const pos, bool const boundary, double & x) const
|
|||||||
* to accept virtual elements, in which case the position
|
* to accept virtual elements, in which case the position
|
||||||
* will be before the virtual element.
|
* will be before the virtual element.
|
||||||
*/
|
*/
|
||||||
if (cit->isVirtual() && pos + boundary_corr == cit->pos)
|
if ((pos + boundary_corr >= cit->pos && pos + boundary_corr < cit->endpos)
|
||||||
break;
|
|| (cit->isVirtual() && pos + boundary_corr == cit->pos)) {
|
||||||
else if (pos + boundary_corr >= cit->pos
|
// FIXME: shall we use `pos + boundary_corr' here?
|
||||||
&& pos + boundary_corr < cit->endpos) {
|
|
||||||
x += cit->pos2x(pos);
|
x += cit->pos2x(pos);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user