Fix bustage
git-svn-id: svn://10.0.0.236/trunk@231771 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user