]> git.saurik.com Git - wxWidgets.git/commitdiff
no more assert failure in GetSelection() if there is no selection
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 Jul 1999 18:32:17 +0000 (18:32 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 Jul 1999 18:32:17 +0000 (18:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/choice.cpp
src/gtk1/choice.cpp

index ae4a6e9fcef1658468b4239bd92eec2c327291d4..c78d0a2e8fbd15aafd6a4ed644e70774e56cca99 100644 (file)
@@ -287,8 +287,6 @@ int wxChoice::GetSelection()
         count++;
     }
 
-    wxFAIL_MSG( _T("wxChoice: no selection") );
-
     return -1;
 }
 
index ae4a6e9fcef1658468b4239bd92eec2c327291d4..c78d0a2e8fbd15aafd6a4ed644e70774e56cca99 100644 (file)
@@ -287,8 +287,6 @@ int wxChoice::GetSelection()
         count++;
     }
 
-    wxFAIL_MSG( _T("wxChoice: no selection") );
-
     return -1;
 }