]> git.saurik.com Git - wxWidgets.git/commitdiff
spurious "(uint)" cast which was causing compilation warnings removed
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 27 May 1998 23:30:50 +0000 (23:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 27 May 1998 23:30:50 +0000 (23:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/checklst.cpp

index a04d7689aa54ee103c93fda57c6b76ee42728010..719c81643c66ee2976b357eda7db9e44805105b4 100644 (file)
@@ -292,7 +292,7 @@ void wxCheckListBox::OnChar(wxKeyEvent& event)
 void wxCheckListBox::OnLeftClick(wxMouseEvent& event)
 {
   // clicking on the item selects it, clicking on the checkmark toggles
-  if ( (uint)event.GetX() <= wxOwnerDrawn::GetDefaultMarginWidth() ) {
+  if ( event.GetX() <= wxOwnerDrawn::GetDefaultMarginWidth() ) {
     // # better use LB_ITEMFROMPOINT perhaps?
     uint nItem = ((uint)event.GetY()) / m_nItemHeight;
     if ( nItem < (uint)m_noItems )