textrendering/textformatting/tbox/LAYEMU.CPP
branchCompilerCompatibility
changeset 10 1d3cadb74b56
parent 5 e96e8a131979
child 11 6971d1c87c9a
--- 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.