X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ebb7606e7d7fb9c4fad75065a97825b1df278d04..4dcf0afed72e5364cbd82dcc9b75f0e841151e76:/src/mac/control.cpp diff --git a/src/mac/control.cpp b/src/mac/control.cpp index 9e6e919791..c3c915f85b 100644 --- a/src/mac/control.cpp +++ b/src/mac/control.cpp @@ -755,7 +755,7 @@ void wxControl::Refresh(bool eraseBack, const wxRect *rect) void wxControl::MacRedrawControl() { - if ( (ControlHandle) m_macControl && MacGetRootWindow() ) + if ( (ControlHandle) m_macControl && MacGetRootWindow() && m_macControlIsShown ) { wxClientDC dc(this) ; wxMacPortSetter helper(&dc) ;