From 74260b002b11cfcceccf02195b4a217dabb80b16 Mon Sep 17 00:00:00 2001 From: Ignacio Ortiz de Zuniga Date: Fri, 8 Nov 2002 12:17:26 +0000 Subject: [PATCH] 2002-11-08 13:16 UTC+0100 Ignacio Ortiz --- harbour/source/rtl/mlcount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/harbour/source/rtl/mlcount.c b/harbour/source/rtl/mlcount.c index 905d775d6e..3f2b401a51 100644 --- a/harbour/source/rtl/mlcount.c +++ b/harbour/source/rtl/mlcount.c @@ -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 ); -} \ No newline at end of file +}