Bug 198861 valgrind nsWindow::Resize uses unitialized value: mShown

r=biesi sr=tor


git-svn-id: svn://10.0.0.236/trunk@140202 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org 2003-03-25 02:30:24 +00:00
parent 9181be2f78
commit 091571b689
2 changed files with 1 additions and 2 deletions

View File

@ -210,7 +210,6 @@ protected:
PRBool WidgetVisible (nsRect &aBounds);
PRBool mIsShown;
PRBool mShown;
int mVisibility; // this is an int because that's the way X likes it
PRUint32 mPreferredWidth;
PRUint32 mPreferredHeight;

View File

@ -454,7 +454,7 @@ NS_IMETHODIMP nsWindow::Resize(PRInt32 aWidth,
if (mIsTooSmall)
{
// if we are not shown, we don't want to force a show here, so check and see if Show(TRUE) has been called
NeedToShow = mShown;
NeedToShow = mIsShown;
mIsTooSmall = PR_FALSE;
}
}