X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f60d0f944a6ce86bce59901e7ea3811f0992bce7..6eed2483b29b8383bd4e2bccec0c40c5b683d8c8:/src/generic/treectrl.cpp diff --git a/src/generic/treectrl.cpp b/src/generic/treectrl.cpp index a9827f7b60..5d1909a46e 100644 --- a/src/generic/treectrl.cpp +++ b/src/generic/treectrl.cpp @@ -580,7 +580,7 @@ wxTreeItemId wxTreeCtrl::GetNextSibling(const wxTreeItemId& item) const wxASSERT( index != NOT_FOUND ); // I'm not a child of my parent? size_t n = (size_t)(index + 1); - return n == siblings.Count() ? wxTreeItemId() : siblings[n]; + return n == siblings.Count() ? wxTreeItemId() : (wxTreeItemId) siblings[n]; } wxTreeItemId wxTreeCtrl::GetPrevSibling(const wxTreeItemId& item) const @@ -599,7 +599,7 @@ wxTreeItemId wxTreeCtrl::GetPrevSibling(const wxTreeItemId& item) const int index = siblings.Index(i); wxASSERT( index != NOT_FOUND ); // I'm not a child of my parent? - return index == 0 ? wxTreeItemId() : siblings[(size_t)(index - 1)]; + return index == 0 ? wxTreeItemId() : (wxTreeItemId) siblings[(size_t)(index - 1)]; } wxTreeItemId wxTreeCtrl::GetFirstVisibleItem() const