From 4af2a59fbfce5b4ae0d51e96334121121fe8afaa Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 18 Apr 2011 23:36:42 +0000 Subject: [PATCH] Don't assert when destroying a never created window in wxGTK. The other ports don't assert if a default-constructed wxWindow object for which Create() had never been called is Destroy()d and wxGTK shouldn't do this neither. The new behaviour is more logical but also fixes a problem with an assert in wxOwnerDrawnComboBox that can currently be seen in wxGTK unit tests. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/window.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 39e2c7603b..4ac089ebcc 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -2460,8 +2460,6 @@ void wxWindowGTK::ConnectWidget( GtkWidget *widget ) bool wxWindowGTK::Destroy() { - wxASSERT_MSG( (m_widget != NULL), wxT("invalid window") ); - m_hasVMT = false; return wxWindowBase::Destroy(); -- 2.50.0