Fix the delete tool not immediately setting cursor

Fix #5939
This commit is contained in:
Marek Roszko 2020-10-09 18:51:10 -04:00
parent 7f3ed1479e
commit 511bdb64e1
1 changed files with 10 additions and 1 deletions

View File

@ -64,9 +64,18 @@ int PICKER_TOOL::Main( const TOOL_EVENT& aEvent )
setControls(); setControls();
auto setCursor =
[&]()
{
m_frame->GetCanvas()->SetCurrentCursor( m_cursor );
};
// Set initial cursor
setCursor();
while( TOOL_EVENT* evt = Wait() ) while( TOOL_EVENT* evt = Wait() )
{ {
m_frame->GetCanvas()->SetCurrentCursor( m_cursor ); setCursor();
VECTOR2D cursorPos = controls->GetCursorPosition( m_frame->IsGridVisible() ); VECTOR2D cursorPos = controls->GetCursorPosition( m_frame->IsGridVisible() );
if( evt->IsCancelInteractive() || evt->IsActivate() ) if( evt->IsCancelInteractive() || evt->IsActivate() )