don't use negative windows sizes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2006-09-07 17:06:29 +00:00
parent 4322f94f29
commit 9cf7a6c06b
2 changed files with 14 additions and 0 deletions

View File

@@ -1021,6 +1021,10 @@ void wxTopLevelWindowGTK::GtkOnSize()
int client_y = m_miniEdge + m_miniTitle;
int client_w = m_width - 2*m_miniEdge;
int client_h = m_height - 2*m_miniEdge - m_miniTitle;
if (client_w < 0)
client_w = 0;
if (client_h < 0)
client_h = 0;
gtk_pizza_set_size( GTK_PIZZA(m_mainWidget),
m_wxwindow,