From 578f01bfd96538cae91d4e0fa276c8c88eb03c33 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Wed, 5 Apr 2017 08:43:05 -0400 Subject: [PATCH] Fix debug build error in symbol remap dialog. --- eeschema/dialogs/dialog_symbol_remap.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eeschema/dialogs/dialog_symbol_remap.cpp b/eeschema/dialogs/dialog_symbol_remap.cpp index 87001e2df6..64951a3d57 100644 --- a/eeschema/dialogs/dialog_symbol_remap.cpp +++ b/eeschema/dialogs/dialog_symbol_remap.cpp @@ -222,10 +222,10 @@ void DIALOG_SYMBOL_REMAP::remapSymbolsToLibTable( REPORTER& aReporter ) bool DIALOG_SYMBOL_REMAP::remapSymbolToLibTable( SCH_COMPONENT* aSymbol ) { - wxCHECK_RET( aSymbol != NULL, "Null pointer passed to remapSymbolToLibTable." ); - wxCHECK_RET( aSymbol->GetLibId().GetLibNickname().empty(), + wxCHECK_MSG( aSymbol != NULL, false, "Null pointer passed to remapSymbolToLibTable." ); + wxCHECK_MSG( aSymbol->GetLibId().GetLibNickname().empty(), false, "Cannot remap symbol that is already mapped." ); - wxCHECK_RET( !aSymbol->GetLibId().GetLibItemName().empty(), + wxCHECK_MSG( !aSymbol->GetLibId().GetLibItemName().empty(), false, "The symbol LIB_ID name is empty." ); PART_LIBS* libs = Prj().SchLibs();