according to dottedmag - this breaks things... i dndt see them - but.. lets

revert for now. i dont like breaks. :)



SVN revision: 46935
This commit is contained in:
Carsten Haitzler 2010-03-07 07:29:26 +00:00
parent b3019e3d4b
commit 78eba185ef
1 changed files with 3 additions and 3 deletions

View File

@ -1306,7 +1306,7 @@ _layout_format_ascent_descent_adjust(Ctxt *c, Evas_Object_Textblock_Format *fmt)
descent = c->ENFN->font_max_descent_get(c->ENDT, fmt->font.font);
if (fmt->linesize > 0)
{
if ((ascent + descent) > 0)
if ((ascent + descent) < fmt->linesize)
{
ascent = ((fmt->linesize * ascent) / (ascent + descent));
descent = fmt->linesize - ascent;
@ -1317,8 +1317,8 @@ _layout_format_ascent_descent_adjust(Ctxt *c, Evas_Object_Textblock_Format *fmt)
descent = ((ascent + descent) * fmt->linerelsize) - (ascent * fmt->linerelsize);
ascent = ascent * fmt->linerelsize;
}
c->maxascent = ascent;
c->maxdescent = descent;
if (c->maxascent < ascent) c->maxascent = ascent;
if (c->maxdescent < descent) c->maxdescent = descent;
}
}