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
This commit is contained in:
rods%netscape.com 2000-08-02 21:53:23 +00:00
parent ed7cd7c8bc
commit 908046df7e
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)