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:
parent
677002e392
commit
54f4033ebb
@ -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;
|
||||
}
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user