From 5294e30a386db20a6ad3d80b67cfbe9fb6edac9e Mon Sep 17 00:00:00 2001 From: Ryan Norton Date: Sat, 20 Dec 2003 13:39:40 +0000 Subject: [PATCH] Added an assert... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/displayx11.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/unix/displayx11.cpp b/src/unix/displayx11.cpp index 93e52b192d..f45bccac1b 100644 --- a/src/unix/displayx11.cpp +++ b/src/unix/displayx11.cpp @@ -119,6 +119,7 @@ wxDisplay::wxDisplay(size_t index) : wxDisplayBase ( index ), m_priv( new wxDisp XineramaScreenInfo *screenarr; int numscreens; screenarr = XineramaQueryScreens(disp, &numscreens); + wxASSERT(index < numscreens); m_priv->m_rect = wxRect(screenarr[index].x_org, screenarr[index].y_org, screenarr[index].width, screenarr[index].height); m_priv->m_depth = DefaultDepth(disp, DefaultScreen(disp)); -- 2.45.2