]> git.saurik.com Git - wxWidgets.git/commitdiff
Replaced moved wxVScrolledWindow HitTest methods fixing bug 1841939 (wxVListBox and...
authorBryan Petty <bryan@ibaku.net>
Sat, 1 Dec 2007 22:58:16 +0000 (22:58 +0000)
committerBryan Petty <bryan@ibaku.net>
Sat, 1 Dec 2007 22:58:16 +0000 (22:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/htmllbox.cpp
src/generic/vlbox.cpp

index fb819ab3e64de579c6e82d923a14af29bffe127c..cc51601b0d8d490a0f3eb1e4c367a74d4dc53f1d 100644 (file)
@@ -464,7 +464,7 @@ wxPoint wxHtmlListBox::GetRootCellCoords(size_t n) const
 
 bool wxHtmlListBox::PhysicalCoordsToCell(wxPoint& pos, wxHtmlCell*& cell) const
 {
-    int n = HitTest(pos);
+    int n = VirtualHitTest(pos.y);
     if ( n == wxNOT_FOUND )
         return false;
 
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 )
     {