]> git.saurik.com Git - wxWidgets.git/commitdiff
Added an assert...
authorRyan Norton <wxprojects@comcast.net>
Sat, 20 Dec 2003 13:39:40 +0000 (13:39 +0000)
committerRyan Norton <wxprojects@comcast.net>
Sat, 20 Dec 2003 13:39:40 +0000 (13:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/displayx11.cpp

index 93e52b192d86da24d77c352893c51aa2b6357198..f45bccac1badc1211563d04067ddaddae9307472 100644 (file)
@@ -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));