From kde-commits Sun Aug 26 02:05:41 2007 From: Charles Samuels Date: Sun, 26 Aug 2007 02:05:41 +0000 To: kde-commits Subject: branches/KDE/3.5/kdelibs/khtml/rendering Message-Id: <1188093941.293878.13440.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=118809394804835 SVN commit 704720 by charles: don't sometimes take text far past the end of the block's margin on justified text. I committed a patch which does this exact same thing in 2005 (484974), but for whatever reason, it seemed to be reproducable again, so here's the "rest" of it. M +1 -1 bidi.cpp --- branches/KDE/3.5/kdelibs/khtml/rendering/bidi.cpp #704719:704720 @@ -2048,7 +2048,7 @@ } } - bool canPlaceOnLine = (w + tmpW <= width+1) || !autoWrap; + bool canPlaceOnLine = (w + tmpW <= width) || !autoWrap; if (canPlaceOnLine && checkForBreak) { w += tmpW; tmpW = 0;