diff --git a/layout/generic/nsTextFrameThebes.cpp b/layout/generic/nsTextFrameThebes.cpp index af78e132b310..f6d79eaf5b73 100644 --- a/layout/generic/nsTextFrameThebes.cpp +++ b/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) {