From 612f7a4a8436bd4fcc2f09715ec5ff83236bd6a8 Mon Sep 17 00:00:00 2001 From: "kin%netscape.com" Date: Fri, 11 May 2001 15:19:28 +0000 Subject: [PATCH] Fix non-debug build bustage. --- layout/forms/nsFieldSetFrame.cpp | 2 +- layout/html/forms/src/nsFieldSetFrame.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/forms/nsFieldSetFrame.cpp b/layout/forms/nsFieldSetFrame.cpp index 260583c1210..d5a598998d8 100644 --- a/layout/forms/nsFieldSetFrame.cpp +++ b/layout/forms/nsFieldSetFrame.cpp @@ -619,10 +619,10 @@ nsFieldSetFrame::RemoveFrame(nsIPresContext* aPresContext, // XXX XXX // XXX temporary fix for bug 70648 if (aOldFrame == mLegendFrame) { -#ifdef DEBUG nsIFrame* sibling; mContentFrame->GetNextSibling(&sibling); NS_ASSERTION(sibling == mLegendFrame, "legendFrame is not next sibling"); +#ifdef DEBUG nsIFrame* legendParent; mLegendFrame->GetParent(&legendParent); NS_ASSERTION(legendParent == this, "Legend Parent has wrong parent"); diff --git a/layout/html/forms/src/nsFieldSetFrame.cpp b/layout/html/forms/src/nsFieldSetFrame.cpp index 260583c1210..d5a598998d8 100644 --- a/layout/html/forms/src/nsFieldSetFrame.cpp +++ b/layout/html/forms/src/nsFieldSetFrame.cpp @@ -619,10 +619,10 @@ nsFieldSetFrame::RemoveFrame(nsIPresContext* aPresContext, // XXX XXX // XXX temporary fix for bug 70648 if (aOldFrame == mLegendFrame) { -#ifdef DEBUG nsIFrame* sibling; mContentFrame->GetNextSibling(&sibling); NS_ASSERTION(sibling == mLegendFrame, "legendFrame is not next sibling"); +#ifdef DEBUG nsIFrame* legendParent; mLegendFrame->GetParent(&legendParent); NS_ASSERTION(legendParent == this, "Legend Parent has wrong parent");