From 604e7194e1023dd6c73a58ab4093e062acbe4aae Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 30 Jul 1999 18:32:17 +0000 Subject: [PATCH] no more assert failure in GetSelection() if there is no selection git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/choice.cpp | 2 -- src/gtk1/choice.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/gtk/choice.cpp b/src/gtk/choice.cpp index ae4a6e9fce..c78d0a2e8f 100644 --- a/src/gtk/choice.cpp +++ b/src/gtk/choice.cpp @@ -287,8 +287,6 @@ int wxChoice::GetSelection() count++; } - wxFAIL_MSG( _T("wxChoice: no selection") ); - return -1; } diff --git a/src/gtk1/choice.cpp b/src/gtk1/choice.cpp index ae4a6e9fce..c78d0a2e8f 100644 --- a/src/gtk1/choice.cpp +++ b/src/gtk1/choice.cpp @@ -287,8 +287,6 @@ int wxChoice::GetSelection() count++; } - wxFAIL_MSG( _T("wxChoice: no selection") ); - return -1; } -- 2.45.2