Replace messageBox with assert for non-fatal error.

Fixes: lp:1770505
* https://bugs.launchpad.net/kicad/+bug/1770505
This commit is contained in:
Jeff Young 2018-05-11 13:01:30 +01:00
parent e91e88bfa1
commit 09622a4c9f
1 changed files with 2 additions and 1 deletions

View File

@ -233,7 +233,8 @@ public:
*/ */
virtual void Move( const wxPoint& aMoveVector ) virtual void Move( const wxPoint& aMoveVector )
{ {
wxMessageBox( wxT( "virtual BOARD_ITEM::Move used, should not occur" ), GetClass() ); wxFAIL_MSG( wxString::Format( wxT( "virtual BOARD_ITEM::Move called for %s" ),
GetClass() ) );
} }
void Move( const VECTOR2I& aMoveVector ) void Move( const VECTOR2I& aMoveVector )