Bug fix for lib-tree previews when lib-tree is hidden.

This commit is contained in:
Jeff Young 2023-09-04 22:21:39 +01:00
parent 70bbaae670
commit d57b726c90
1 changed files with 1 additions and 1 deletions

View File

@ -649,7 +649,7 @@ void LIB_TREE::onIdle( wxIdleEvent& aEvent )
wxWindow* topLevelFocus = wxGetTopLevelParent( wxWindow::FindFocus() );
wxPoint screenPos = wxGetMousePosition();
wxRect screenRect = m_tree_ctrl->GetScreenRect();
wxRect screenRect = m_tree_ctrl->IsShown() ? m_tree_ctrl->GetScreenRect() : wxRect();
if( topLevelFocus != topLevelParent || !screenRect.Contains( screenPos ) )
{