From: Vadim Zeitlin Date: Fri, 30 Jul 1999 18:32:17 +0000 (+0000) Subject: no more assert failure in GetSelection() if there is no selection X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/604e7194e1023dd6c73a58ab4093e062acbe4aae?hp=3646fd68cb4fcf3242e8c6ba87bf99f409777032 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 --- 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; }