From 09622a4c9f8ce64b1566ec0b1f6e87db874a6cb6 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 11 May 2018 13:01:30 +0100 Subject: [PATCH] Replace messageBox with assert for non-fatal error. Fixes: lp:1770505 * https://bugs.launchpad.net/kicad/+bug/1770505 --- include/class_board_item.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/class_board_item.h b/include/class_board_item.h index 6c7ba23e72..41330670da 100644 --- a/include/class_board_item.h +++ b/include/class_board_item.h @@ -233,7 +233,8 @@ public: */ 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 )