From 7173aeb7660cc2250fe420b019550124bf5672aa Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Thu, 12 Apr 2001 01:57:50 +0000 Subject: [PATCH] Fix error in empty testing in templates. r=brendan, sr=waterson git-svn-id: svn://10.0.0.236/trunk@92051 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp b/mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp index f54d0d11f0e..905863a5181 100644 --- a/mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp +++ b/mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp @@ -1295,8 +1295,10 @@ nsXULTemplateBuilder::CheckContainer(nsIRDFResource* aResource, PRBool* aIsConta isContainer = PR_TRUE; // ...should we check if it's empty? - if (!aIsEmpty || (mFlags & eDontTestEmpty)) + if (!aIsEmpty || (mFlags & eDontTestEmpty)) { + isEmpty = PR_FALSE; break; + } // Yes: call GetTarget() and see if there's anything on // the other side...