cb8445f0323b0eefbb04f1d8adad81a00b53abd8 removes an implied +1 from
document line height so we need to remove the compensating -1 from
image ascent/descent for image heights to be correct..
Change-Id: I310c06bcf1ce2eefef42c2828faa0eb435ad71cf
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
{
case QTextCharFormat::AlignMiddle:
item.setDescent(inlineSize.height() / 2);
- item.setAscent(inlineSize.height() / 2 - 1);
+ item.setAscent(inlineSize.height() / 2);
break;
case QTextCharFormat::AlignBaseline:
item.setDescent(m.descent());
- item.setAscent(inlineSize.height() - m.descent() - 1);
+ item.setAscent(inlineSize.height() - m.descent());
break;
default:
item.setDescent(0);
- item.setAscent(inlineSize.height() - 1);
+ item.setAscent(inlineSize.height());
}
}