Initialize wxTopLevelWindow::DecorSize in wxGTK
Add default ctor for this struct as it was too easy to forget to initialize it otherwise, ending up with bogus values in it, as it happened with wxTLWGeometry::m_decorSize, which resulted in a failure in wxPersistTLW unit test and, probably, real code too.
This commit is contained in:
@@ -307,7 +307,6 @@ 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);
|
||||
memset(&m_decorSize, 0, sizeof(m_decorSize));
|
||||
m_deferShow = false;
|
||||
|
||||
if (m_parent && (GTK_IS_WINDOW(m_parent->m_widget)))
|
||||
|
Reference in New Issue
Block a user