diff -r 3969f087709d -r 1d3cadb74b56 textrendering/textformatting/tbox/LAYEMU.CPP --- a/textrendering/textformatting/tbox/LAYEMU.CPP Mon Mar 08 21:45:11 2010 +0000 +++ b/textrendering/textformatting/tbox/LAYEMU.CPP Sun Mar 14 13:16:16 2010 +0000 @@ -682,7 +682,7 @@ @return The y coordinate of the bottom of the last formatted line. */ EXPORT_C TInt CTextLayout::YBottomLastFormattedLine() const { - return iText->LayoutHeight() - iBandTop; + return Max(0, iText->LayoutHeight() - iBandTop ); } /** Returns the height in pixels of the formatted text.