From 908046df7ecefec9ffe01aad95245a05cdb32d26 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Wed, 2 Aug 2000 21:53:23 +0000 Subject: [PATCH] Since the way (and when) options were added then number of options is now different so it must check against zero instead of 1 b=44266,r=kmcclusk git-svn-id: svn://10.0.0.236/trunk@75419 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsCSSFrameConstructor.cpp | 2 +- mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index 61f130d15e0..4231b8b33ab 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -8533,7 +8533,7 @@ nsCSSFrameConstructor::RemoveDummyFrameFromSelect(nsIPresContext* aPresContext, PRUint32 numOptions = 0; nsresult result = aSelectElement->GetLength(&numOptions); if (NS_SUCCEEDED(result)) { - if (1 == numOptions) { + if (0 == numOptions) { nsIFrame* parentFrame; nsIFrame* childFrame; // Get the childFrame for the added child (option) diff --git a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp index 61f130d15e0..4231b8b33ab 100644 --- a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp @@ -8533,7 +8533,7 @@ nsCSSFrameConstructor::RemoveDummyFrameFromSelect(nsIPresContext* aPresContext, PRUint32 numOptions = 0; nsresult result = aSelectElement->GetLength(&numOptions); if (NS_SUCCEEDED(result)) { - if (1 == numOptions) { + if (0 == numOptions) { nsIFrame* parentFrame; nsIFrame* childFrame; // Get the childFrame for the added child (option)