Added another sanity check....
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
816e36172a
commit
892dd3cef3
@ -44,7 +44,7 @@ const wxVideoMode wxDefaultVideoMode;
|
||||
wxDisplayBase::wxDisplayBase(size_t index)
|
||||
: m_index (index)
|
||||
{
|
||||
wxASSERT_MSG( m_index < GetCount(),
|
||||
wxASSERT_MSG( m_index >= 0 && m_index < GetCount(),
|
||||
wxT("An invalid index was passed to wxDisplay") );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user