diff -r 1fb32624e06b -r e96e8a131979 textrendering/textformatting/tbox/LAYEMU.CPP --- a/textrendering/textformatting/tbox/LAYEMU.CPP Tue Feb 02 02:02:46 2010 +0200 +++ b/textrendering/textformatting/tbox/LAYEMU.CPP Sat Feb 20 00:37:46 2010 +0200 @@ -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.