]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/frame.cpp
!__WX_DC_BLIT_FIXED__ case
[wxWidgets.git] / src / gtk / frame.cpp
index b6c8bc5e423b05f5a1818e1cfbbab0ecf0646db8..801f14ac60b20c94ef778bb9b3373d9a89732a30 100644 (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 );