Bug fix for lib-tree previews when lib-tree is hidden.
This commit is contained in:
parent
70bbaae670
commit
d57b726c90
|
@ -649,7 +649,7 @@ void LIB_TREE::onIdle( wxIdleEvent& aEvent )
|
||||||
wxWindow* topLevelFocus = wxGetTopLevelParent( wxWindow::FindFocus() );
|
wxWindow* topLevelFocus = wxGetTopLevelParent( wxWindow::FindFocus() );
|
||||||
|
|
||||||
wxPoint screenPos = wxGetMousePosition();
|
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 ) )
|
if( topLevelFocus != topLevelParent || !screenRect.Contains( screenPos ) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue