diff --git a/widget/src/mac/nsMacControl.cpp b/widget/src/mac/nsMacControl.cpp index 774bcf591af6..6750c0884e2f 100644 --- a/widget/src/mac/nsMacControl.cpp +++ b/widget/src/mac/nsMacControl.cpp @@ -86,7 +86,7 @@ nsMacControl::~nsMacControl() //------------------------------------------------------------------------- PRBool nsMacControl::OnPaint(nsPaintEvent &aEvent) { - if (mControl) + if (mControl && mVisible) { // set the control text attributes // (the rendering context has already set these attributes for