X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a236aa2058ccf3d36e9cafc20fa7375080c4be50..3b2f109dbbea2847114c62315676eed7a3986dbc:/src/generic/htmllbox.cpp diff --git a/src/generic/htmllbox.cpp b/src/generic/htmllbox.cpp index fb819ab3e6..796b5070c3 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; @@ -603,6 +603,11 @@ void wxSimpleHtmlListBox::DoClear() UpdateCount(); } +void wxSimpleHtmlListBox::Clear() +{ + DoClear(); +} + void wxSimpleHtmlListBox::DoDeleteOneItem(unsigned int n) { m_items.RemoveAt(n);