Fix stupid error in XPath analyzer. Bug 301168, r=aaronr+doronr, a=mkaply, NPOTB

This commit is contained in:
allan%beaufour.dk 2005-07-20 07:49:26 +00:00
parent 76391b1dcf
commit 89c5b629a6

View File

@ -166,7 +166,7 @@ nsXFormsXPathAnalyzer::AnalyzeRecursively(nsIDOMNode *aContextNode,
if (aNode->mCon) {
// Remove the leading /
xp = Substring(*mCurExprString, aNode->mStartIndex + 1,
aNode->mEndIndex - aNode->mStartIndex + 2);
aNode->mEndIndex - aNode->mStartIndex - 1);
} else {
xp = Substring(*mCurExprString, aNode->mStartIndex,
aNode->mEndIndex - aNode->mStartIndex);