[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/lib/kotext
From:       David Faure <faure () kde ! org>
Date:       2006-02-03 12:14:48
Message-ID: 1138968888.487781.17524.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 505181 by dfaure:

Fix problems when reloading margin.odp from Zagge: a different paragraph format gives
the trailing space a different size, but we should ignore that during formatting.


 M  +1 -1      KoTextFormatter.cpp  


--- trunk/koffice/lib/kotext/KoTextFormatter.cpp #505180:505181
@@ -708,7 +708,7 @@
             if ( i < len - 2 || c->c != ' ' )
                 lastBreak = i;
 
-        } else {
+        } else if ( i < len - 1 ) { // ignore height of trailing space
             // Non-breakable character
             //tminw += ww;
 #ifdef DEBUG_FORMATTER_VERT
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic