]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/vlbox.cpp
removed useless inclusion of wx/datetime.h
[wxWidgets.git] / src / generic / vlbox.cpp
index 9c9b8d06c87bed6f9429bc1cab8140cc4490c2ed..747d82825164302617dd0b084ee45c1e62f54fea 100644 (file)
@@ -634,7 +634,7 @@ void wxVListBox::OnLeftDown(wxMouseEvent& event)
 {
     SetFocus();
 
-    int item = HitTest(event.GetPosition());
+    int item = VirtualHitTest(event.GetPosition().y);
 
     if ( item != wxNOT_FOUND )
     {
@@ -657,7 +657,7 @@ void wxVListBox::OnLeftDown(wxMouseEvent& event)
 
 void wxVListBox::OnLeftDClick(wxMouseEvent& eventMouse)
 {
-    int item = HitTest(eventMouse.GetPosition());
+    int item = VirtualHitTest(eventMouse.GetPosition().y);
     if ( item != wxNOT_FOUND )
     {