X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4d8209b9070ea7120078e83a648f3627e57bc15a..11a23db53128bf244a089123b7fd27deb577a889:/src/gtk/minifram.cpp diff --git a/src/gtk/minifram.cpp b/src/gtk/minifram.cpp index 3f435eec9c..6d07a6d893 100644 --- a/src/gtk/minifram.cpp +++ b/src/gtk/minifram.cpp @@ -2,7 +2,6 @@ // Name: src/gtk/minifram.cpp // Purpose: // Author: Robert Roebling -// Id: $Id$ // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -397,7 +396,7 @@ bool wxMiniFrame::Create( wxWindow *parent, wxWindowID id, const wxString &title if (style & wxRESIZE_BORDER) m_gdkFunc = GDK_FUNC_RESIZE; gtk_window_set_default_size(GTK_WINDOW(m_widget), m_width, m_height); - m_decorSize.Set(0, 0); + memset(&m_decorSize, 0, sizeof(m_decorSize)); m_deferShow = false; if (m_parent && (GTK_IS_WINDOW(m_parent->m_widget))) @@ -435,6 +434,10 @@ bool wxMiniFrame::Create( wxWindow *parent, wxWindowID id, const wxString &title void wxMiniFrame::DoGetClientSize(int* width, int* height) const { wxFrame::DoGetClientSize(width, height); + + if (m_useCachedClientSize) + return; + if (width) { *width -= 2 * m_miniEdge;