From 10368bffe1dc0f9e091246fd281ebda51f6ee3f6 Mon Sep 17 00:00:00 2001 From: Bryan Petty Date: Sat, 1 Dec 2007 22:58:16 +0000 Subject: [PATCH] Replaced moved wxVScrolledWindow HitTest methods fixing bug 1841939 (wxVListBox and wxHtmlListBox). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/htmllbox.cpp | 2 +- src/generic/vlbox.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/generic/htmllbox.cpp b/src/generic/htmllbox.cpp index fb819ab3e6..cc51601b0d 100644 --- a/src/generic/htmllbox.cpp +++ b/src/generic/htmllbox.cpp @@ -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; diff --git a/src/generic/vlbox.cpp b/src/generic/vlbox.cpp index 9c9b8d06c8..747d828251 100644 --- a/src/generic/vlbox.cpp +++ b/src/generic/vlbox.cpp @@ -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 ) { -- 2.45.2