2002-11-08 13:16 UTC+0100 Ignacio Ortiz <ignacio@fivetech.com>

This commit is contained in:
Ignacio Ortiz de Zuniga
2002-11-08 12:17:26 +00:00
parent 996c99abdd
commit 74260b002b

View File

@@ -106,7 +106,7 @@ HB_FUNC( MLCOUNT )
{
if( bWordWrap )
{
if( ulLastSpace == 0 )
if( ulLastSpace == 0 || ulLastSpace == ulCurLength )
ulCurLength = 1;
else
ulCurLength = ulCurLength - ulLastSpace;
@@ -123,4 +123,4 @@ HB_FUNC( MLCOUNT )
ulLines++;
hb_retnl( ulLines );
}
}