From 7b7acedec892f3617d00d05d6e1a087e824f3b25 Mon Sep 17 00:00:00 2001 From: "pierre%netscape.com" Date: Wed, 9 Dec 1998 13:24:26 +0000 Subject: [PATCH] don't draw when not visible --- widget/src/mac/nsMacControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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