Fix a crash when aborting a block command.

This commit is contained in:
Jeff Young 2018-09-02 21:37:42 +01:00
parent 1c52824913
commit b002b96db6
1 changed files with 1 additions and 1 deletions

View File

@ -203,5 +203,5 @@ void AbortBlockCurrentCommand( EDA_DRAW_PANEL* aPanel, wxDC* aDC )
aPanel->GetParent()->DisplayToolMsg( wxEmptyString );
// ugly, but temporary
reinterpret_cast<EDA_DRAW_PANEL_GAL*>( aPanel )->SetDefaultCursor();
dynamic_cast<EDA_DRAW_PANEL_GAL*>( aPanel )->SetDefaultCursor();
}