forked from enlightenment/efl
Evas textblock and font engine: Fixed cursor position to be at the end of the current item, and not the end of the line, this looks nicer in bidi strings.
Fixed querying char coords to return the current position of the NULL according to the text's alignment, not the paragraph's. SVN revision: 56419
This commit is contained in:
parent
ab1a4f0a77
commit
81616cec5d
|
@ -6863,24 +6863,8 @@ evas_textblock_cursor_char_geometry_get(const Evas_Textblock_Cursor *cur, Evas_C
|
|||
&x, &y, &w, &h);
|
||||
}
|
||||
|
||||
/* Handle bidi adjustments */
|
||||
if (_evas_textblock_cursor_is_at_the_end(cur))
|
||||
{
|
||||
#ifdef BIDI_SUPPORT
|
||||
if (EVAS_BIDI_PARAGRAPH_DIRECTION_IS_RTL(ti->bidi_props.props))
|
||||
{
|
||||
x = ln->x;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
x = ln->x + ln->w;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
x += ln->x + _ITEM(ti)->x - ti->inset;
|
||||
}
|
||||
|
||||
if (x < ln->x)
|
||||
{
|
||||
x = ln->x;
|
||||
|
|
Loading…
Reference in New Issue