From bb4fb9088fe71a90ebd7a72922b38ab1090b4ed7 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Thu, 29 Jun 2023 22:37:25 +0100 Subject: [PATCH] Gracefully handle no symbols found in change symbols dialog Fixes KICAD-2BJ --- eeschema/dialogs/dialog_change_symbols.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eeschema/dialogs/dialog_change_symbols.cpp b/eeschema/dialogs/dialog_change_symbols.cpp index 7a7ad8eed9..0432547711 100644 --- a/eeschema/dialogs/dialog_change_symbols.cpp +++ b/eeschema/dialogs/dialog_change_symbols.cpp @@ -506,7 +506,10 @@ int DIALOG_CHANGE_SYMBOLS::processMatchingSymbols( SCH_COMMIT* aCommit ) } } - matchesProcessed += processSymbols( aCommit, symbols ); + if( symbols.size() > 0 ) + matchesProcessed += processSymbols( aCommit, symbols ); + else + m_messagePanel->Report( _( "*** No symbols matching criteria found ***" ), RPT_SEVERITY_ERROR ); frame->GetCurrentSheet().UpdateAllScreenReferences();