alow linesiae to get smaller - from mikhal

SVN revision: 46930
This commit is contained in:
Carsten Haitzler 2010-03-07 06:48:48 +00:00
parent 40a7b9aa38
commit 3f465fc58b
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) < fmt->linesize)
if ((ascent + descent) > 0)
{
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;
}
if (c->maxascent < ascent) c->maxascent = ascent;
if (c->maxdescent < descent) c->maxdescent = descent;
c->maxascent = ascent;
c->maxdescent = descent;
}
}