forked from enlightenment/efl
Evas textblock: Fixed 1 more clang error.
http://dev.enlightenment.fr/~discomfitor/evas-2011-11-08/report-XA8yiy.html#EndPath SVN revision: 64976
This commit is contained in:
parent
3fea444dce
commit
789b487da2
|
@ -723,22 +723,23 @@ evas_common_font_query_last_up_to_pos(RGBA_Font *fn, const Evas_Text_Props *text
|
||||||
#ifdef BIDI_SUPPORT
|
#ifdef BIDI_SUPPORT
|
||||||
if (text_props->bidi.dir == EVAS_BIDI_DIRECTION_RTL)
|
if (text_props->bidi.dir == EVAS_BIDI_DIRECTION_RTL)
|
||||||
{
|
{
|
||||||
Evas_Font_Glyph_Info *gli = (text_props->info) ?
|
Evas_Font_Glyph_Info *gli = NULL;
|
||||||
text_props->info->glyph + text_props->start : NULL;
|
|
||||||
Evas_Coord full_adv = 0, pen_x = 0, start_pen = 0;
|
Evas_Coord full_adv = 0, pen_x = 0, start_pen = 0;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (text_props->len > 0)
|
if ((text_props->info) && (text_props->len > 0))
|
||||||
{
|
{
|
||||||
|
gli = text_props->info->glyph + text_props->start;
|
||||||
full_adv = gli[text_props->len - 1].pen_after;
|
full_adv = gli[text_props->len - 1].pen_after;
|
||||||
if (text_props->start > 0)
|
if (text_props->start > 0)
|
||||||
{
|
{
|
||||||
start_pen = gli[-1].pen_after;
|
start_pen = gli[-1].pen_after;
|
||||||
full_adv -= start_pen;
|
full_adv -= start_pen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gli += text_props->len - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
gli += text_props->len - 1;
|
|
||||||
for (i = text_props->len - 1 ; i >= 0 ; i--, gli--)
|
for (i = text_props->len - 1 ; i >= 0 ; i--, gli--)
|
||||||
{
|
{
|
||||||
pen_x = full_adv - (gli->pen_after - start_pen);
|
pen_x = full_adv - (gli->pen_after - start_pen);
|
||||||
|
|
Loading…
Reference in New Issue