don't set negative window size

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2006-10-03 14:29:25 +00:00
parent df9fac6d21
commit 6ba2e1940f

View File

@@ -416,8 +416,6 @@ void wxFrame::GtkOnSize()
ww = m_toolBarDetached ? wxPLACE_HOLDER
: m_frameToolBar->m_width;
hh = m_height - 2*m_miniEdge;
if (hh < 0)
hh = 0;
client_area_x_offset += ww;
}
@@ -443,6 +441,10 @@ void wxFrame::GtkOnSize()
client_area_y_offset += hh;
}
if (ww < 0)
ww = 0;
if (hh < 0)
hh = 0;
gtk_pizza_set_size( GTK_PIZZA(m_mainWidget),
m_frameToolBar->m_widget,
xx, yy, ww, hh );