From 448ca97baa8d5fc5b05d03f5dd9be13a997d2cb4 Mon Sep 17 00:00:00 2001 From: "roc+%cs.cmu.edu" Date: Fri, 10 Aug 2007 02:00:15 +0000 Subject: [PATCH] Fix bustage git-svn-id: svn://10.0.0.236/trunk@231771 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsTextFrameThebes.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mozilla/layout/generic/nsTextFrameThebes.cpp b/mozilla/layout/generic/nsTextFrameThebes.cpp index af78e132b31..f6d79eaf5b7 100644 --- a/mozilla/layout/generic/nsTextFrameThebes.cpp +++ b/mozilla/layout/generic/nsTextFrameThebes.cpp @@ -5550,15 +5550,14 @@ nsTextFrame::Reflow(nsPresContext* aPresContext, PRUint32 charIndex = transformedOffset + transformedCharsFit; while (charIndex > transformedOffset && mTextRun->GetChar(charIndex - 1) == ' ') { - ++textMetrics.mClusterCount; --charIndex; } } - NS_ASSERTION(numJustifiableCharacters <= textMetrics.mClusterCount, + NS_ASSERTION(numJustifiableCharacters <= charsFit, "Justifiable characters combined???"); lineLayout.SetTextJustificationWeights(numJustifiableCharacters, - textMetrics.mClusterCount - numJustifiableCharacters); + charsFit - numJustifiableCharacters); } if (layoutDependentTextRun) {