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

src/unix/displayx11.cpp

index f45bccac1badc1211563d04067ddaddae9307472..0546f5e864e65a348115df8a184f1bc9b5d04f51 100644 (file)
@@ -119,7 +119,10 @@ wxDisplay::wxDisplay(size_t index) : wxDisplayBase ( index ), m_priv( new wxDisp
     XineramaScreenInfo *screenarr;
     int numscreens;
     screenarr = XineramaQueryScreens(disp, &numscreens);
-    wxASSERT(index < numscreens);
+    
+    //Make sure index is a valid display number...
+    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));