textrendering/textformatting/tbox/LAYEMU.CPP
branchRCL_3
changeset 1 e96e8a131979
parent 0 1fb32624e06b
child 2 6971d1c87c9a
--- 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.