From 3d5125628d92a9890ca18b761c01342c5fd89456 Mon Sep 17 00:00:00 2001 From: "bzbarsky@mit.edu" Date: Wed, 7 Nov 2007 09:16:09 -0800 Subject: [PATCH] Don't set our separator count to -1 when we really have 0 of them. Bug 400157, r+sr=dbaron --- layout/mathml/base/src/nsMathMLmfencedFrame.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layout/mathml/base/src/nsMathMLmfencedFrame.cpp b/layout/mathml/base/src/nsMathMLmfencedFrame.cpp index 6bd707ee7b33..693a45fac0fd 100644 --- a/layout/mathml/base/src/nsMathMLmfencedFrame.cpp +++ b/layout/mathml/base/src/nsMathMLmfencedFrame.cpp @@ -195,8 +195,12 @@ nsMathMLmfencedFrame::CreateFencesAndSeparators(nsPresContext* aPresContext) mSeparatorsChar[i].SetData(aPresContext, sepChar); ResolveMathMLCharStyle(aPresContext, mContent, mStyleContext, &mSeparatorsChar[i], isMutable); } + mSeparatorsCount = sepCount; + } else { + // No separators. Note that sepCount can be -1 here, so don't + // set mSeparatorsCount to it. + mSeparatorsCount = 0; } - mSeparatorsCount = sepCount; } return NS_OK; }