don't invalidate the control if it's already enabled. (rev sfraser/appr leaf)

git-svn-id: svn://10.0.0.236/trunk@48934 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pinkerton%netscape.com 1999-09-23 23:26:37 +00:00
parent 677002e392
commit 54f4033ebb

View File

@ -257,8 +257,10 @@ void nsMacControl::ControlChanged(PRInt32 aNewValue)
//-------------------------------------------------------------------------
NS_IMETHODIMP nsMacControl::Enable(PRBool bState)
{
PRBool priorState = mEnabled;
Inherited::Enable(bState);
Invalidate(PR_FALSE);
if ( priorState != bState )
Invalidate(PR_FALSE);
return NS_OK;
}
//-------------------------------------------------------------------------