avoid forcing a paint on a window with zero size, see #15976
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3848,7 +3848,7 @@ void wxWindowGTK::Refresh(bool WXUNUSED(eraseBackground),
|
||||
|
||||
void wxWindowGTK::Update()
|
||||
{
|
||||
if (m_widget && gtk_widget_get_mapped(m_widget))
|
||||
if (m_widget && gtk_widget_get_mapped(m_widget) && m_width > 0 && m_height > 0)
|
||||
{
|
||||
GdkDisplay* display = gtk_widget_get_display(m_widget);
|
||||
// Flush everything out to the server, and wait for it to finish.
|
||||
|
Reference in New Issue
Block a user