changeset 16 | 56cd22a7a1cb |
parent 0 | 1fb32624e06b |
child 24 | 71313a964664 |
child 40 | 91ef7621b7fc |
--- a/textrendering/textformatting/tbox/LAYEMU.CPP Tue Feb 02 02:02:46 2010 +0200 +++ b/textrendering/textformatting/tbox/LAYEMU.CPP Fri Apr 16 16:55:07 2010 +0300 @@ -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.