From cc1fcb9584a9c87a7724c04ccbd957fe78f5b94a Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 26 Sep 2000 14:46:42 +0000 Subject: [PATCH] Removed assert complaining about out-focus without in-focus, because it happens a lot git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/radiobox.cpp | 6 +++++- src/gtk1/radiobox.cpp | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/gtk/radiobox.cpp b/src/gtk/radiobox.cpp index 9ad17a94fe..fe7709a31d 100644 --- a/src/gtk/radiobox.cpp +++ b/src/gtk/radiobox.cpp @@ -17,6 +17,7 @@ #include "wx/dialog.h" #include "wx/frame.h" +#include "wx/log.h" #include #include @@ -142,7 +143,10 @@ static gint gtk_radiobutton_focus_out( GtkWidget *widget, GdkEvent *WXUNUSED(event), wxRadioBox *win ) { - wxASSERT_MSG( win->m_hasFocus, _T("got focus out without any focus in?") ); + // wxASSERT_MSG( win->m_hasFocus, _T("got focus out without any focus in?") ); + // Replace with a warning, else we dump core a lot! + // if (!win->m_hasFocus) + // wxLogWarning(_T("Radiobox got focus out without any focus in.") ); // we might have lost the focus, but may be not - it may have just gone to // another button in the same radiobox, so we'll check for it in the next diff --git a/src/gtk1/radiobox.cpp b/src/gtk1/radiobox.cpp index 9ad17a94fe..fe7709a31d 100644 --- a/src/gtk1/radiobox.cpp +++ b/src/gtk1/radiobox.cpp @@ -17,6 +17,7 @@ #include "wx/dialog.h" #include "wx/frame.h" +#include "wx/log.h" #include #include @@ -142,7 +143,10 @@ static gint gtk_radiobutton_focus_out( GtkWidget *widget, GdkEvent *WXUNUSED(event), wxRadioBox *win ) { - wxASSERT_MSG( win->m_hasFocus, _T("got focus out without any focus in?") ); + // wxASSERT_MSG( win->m_hasFocus, _T("got focus out without any focus in?") ); + // Replace with a warning, else we dump core a lot! + // if (!win->m_hasFocus) + // wxLogWarning(_T("Radiobox got focus out without any focus in.") ); // we might have lost the focus, but may be not - it may have just gone to // another button in the same radiobox, so we'll check for it in the next -- 2.45.2