Fixed an oopsie that prevented enumerating the override and backstop sheets

git-svn-id: svn://10.0.0.236/trunk@26153 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1999-04-03 18:56:45 +00:00
parent 66d4985883
commit 78dc3c2c3c
3 changed files with 6 additions and 6 deletions

View File

@@ -263,7 +263,7 @@ PRInt32 StyleSetImpl::GetNumberOfOverrideStyleSheets()
nsIStyleSheet* StyleSetImpl::GetOverrideStyleSheetAt(PRInt32 aIndex)
{
nsIStyleSheet* sheet = nsnull;
if (nsnull == mOverrideSheets) {
if (nsnull != mOverrideSheets) {
sheet = (nsIStyleSheet*)mOverrideSheets->ElementAt(aIndex);
}
return sheet;
@@ -378,7 +378,7 @@ PRInt32 StyleSetImpl::GetNumberOfBackstopStyleSheets()
nsIStyleSheet* StyleSetImpl::GetBackstopStyleSheetAt(PRInt32 aIndex)
{
nsIStyleSheet* sheet = nsnull;
if (nsnull == mBackstopSheets) {
if (nsnull != mBackstopSheets) {
sheet = (nsIStyleSheet*)mBackstopSheets->ElementAt(aIndex);
}
return sheet;