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:
Paul Cornett
2014-02-13 16:46:57 +00:00
parent cbda10a5c0
commit 3354ddc8f9

View File

@@ -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.