Bug 328496, search results appear multiple times, r+sr=bz

This commit is contained in:
enndeakin%sympatico.ca 2006-02-27 16:50:15 +00:00
parent 65c400afcf
commit b8b1062a90

View File

@ -1326,6 +1326,13 @@ nsXULContentBuilder::CreateContainerContentsForQuerySet(nsIContent* aElement,
}
}
if (existingmatch) {
// remove the generated content for the existing match
rv = ReplaceMatch(existingmatch->mResult, nsnull, nsnull, aElement);
if (NS_FAILED(rv))
return rv;
}
if (generateContent) {
// find the rule that matches. If none match, the content does not
// need to be generated