diff --git a/common/legacy_gal/block.cpp b/common/legacy_gal/block.cpp index f94989d43a..d4c3f0f4f9 100644 --- a/common/legacy_gal/block.cpp +++ b/common/legacy_gal/block.cpp @@ -203,5 +203,5 @@ void AbortBlockCurrentCommand( EDA_DRAW_PANEL* aPanel, wxDC* aDC ) aPanel->GetParent()->DisplayToolMsg( wxEmptyString ); // ugly, but temporary - reinterpret_cast( aPanel )->SetDefaultCursor(); + dynamic_cast( aPanel )->SetDefaultCursor(); }