]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cmdline.cpp
1. added wxUpdateUIEvent handling to wxMGL
[wxWidgets.git] / src / common / cmdline.cpp
index 5ac040b271f1389b551a1a98837f4920323b2b26..2c5ea56421506699afcbe5e318222bb2e22b30bd 100644 (file)
@@ -460,6 +460,8 @@ size_t wxCmdLineParser::GetParamCount() const
 
 wxString wxCmdLineParser::GetParam(size_t n) const
 {
+    wxCHECK_MSG( n < GetParamCount(), wxEmptyString, _T("invalid param index") );
+
     return m_data->m_parameters[n];
 }