Remove hack that's no longer necessary.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14020
This commit is contained in:
Jeff Young 2023-10-14 19:16:39 +01:00
parent 14d5a404b2
commit 372c5d7963
1 changed files with 0 additions and 10 deletions

View File

@ -849,16 +849,6 @@ void LIB_TREE::onItemContextMenu( wxDataViewEvent& aEvent )
{
wxPoint pos = m_tree_ctrl->ScreenToClient( wxGetMousePosition() );
// What we actually want is the height of the column header, but wxWidgets gives us
// no way to get that, so we use the height of the search ctrl as a proxy. And it's
// not even a very good proxy on Mac....
int headerHeight = m_tree_ctrl->GetPosition().y;
#ifdef __WXMAC__
headerHeight += 5;
#endif
pos.y -= headerHeight;
wxDataViewItem item;
wxDataViewColumn* col;
m_tree_ctrl->HitTest( pos, item, col );