When there is a virtual element like an end-of-paragraph marker, the cursor should be on the left (in RTL text).
This problem was created by
46ee6799.
double w = 0;
//handle first the two bounds of the element
double w = 0;
//handle first the two bounds of the element
- if (i == endpos && !(inset && inset->lyxCode() == SEPARATOR_CODE))
+ if (i == endpos && type != VIRTUAL
+ && !(inset && inset->lyxCode() == SEPARATOR_CODE))
w = rtl ? 0 : full_width();
else if (i == pos || type != STRING)
w = rtl ? full_width() : 0;
w = rtl ? 0 : full_width();
else if (i == pos || type != STRING)
w = rtl ? full_width() : 0;