Fix case of CLion getting a little carried away.

This commit is contained in:
Jeff Young 2021-07-04 16:23:23 +01:00
parent 8b2b3ca797
commit 8f0104f921
1 changed files with 2 additions and 2 deletions

View File

@ -428,7 +428,7 @@ void WX_VIEW_CONTROLS::onButton( wxMouseEvent& aEvent )
{
m_state = IDLE;
#if defined USE_MOUSE_CAPTURE
if( !m_boardAdapter.m_cursorCaptured && m_parentPanel->HasCapture() )
if( !m_settings.m_cursorCaptured && m_parentPanel->HasCapture() )
m_parentPanel->ReleaseMouse();
#endif
}
@ -629,7 +629,7 @@ void WX_VIEW_CONTROLS::CancelDrag()
{
m_state = IDLE;
#if defined USE_MOUSE_CAPTURE
if( !m_boardAdapter.m_cursorCaptured && m_parentPanel->HasCapture() )
if( !m_settings.m_cursorCaptured && m_parentPanel->HasCapture() )
m_parentPanel->ReleaseMouse();
#endif
}