mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Fix stupid error in XPath analyzer. Bug 301168, r=aaronr+doronr, a=mkaply, NPOTB
This commit is contained in:
parent
76391b1dcf
commit
89c5b629a6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user