]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listctrl.cpp
Update compile support for OpenVMS
[wxWidgets.git] / src / msw / listctrl.cpp
index 9e23d1db3fb33a508d16b3c00c30b422e4b64639..f05ea49fb8ae085aba3b1ca30a4228ca52cc8ee9 100644 (file)
@@ -1162,6 +1162,10 @@ bool wxListCtrl::GetSubItemRect(long item, long subItem, wxRect& rect, int code)
                     (subItem >= 0 && subItem < GetColumnCount()),
                  false, _T("invalid sub item index") );
 
+    // use wxCHECK_MSG against "item" too, for coherency with the generic implementation:
+    wxCHECK_MSG( item >= 0 && item < GetItemCount(), false,
+                 _T("invalid item in GetSubItemRect") );
+
     int codeWin;
     if ( code == wxLIST_RECT_BOUNDS )
         codeWin = LVIR_BOUNDS;