From 5bf241a53e2911d0d3c4e946eceb3ce08e702df0 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 25 Oct 2023 09:41:08 +0200 Subject: [PATCH] Pcbnew, export component placement: better string in menu (.gbr added). Also fix 2 minor Coverity warnings. --- eeschema/sch_view.cpp | 2 ++ eeschema/symbol_editor/symbol_edit_frame.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/eeschema/sch_view.cpp b/eeschema/sch_view.cpp index 35b1479aca..11279bb89f 100644 --- a/eeschema/sch_view.cpp +++ b/eeschema/sch_view.cpp @@ -163,7 +163,9 @@ void SCH_VIEW::DisplaySymbol( LIB_SYMBOL* aSymbol ) if( std::shared_ptr< LIB_SYMBOL > parent = aSymbol->GetRootSymbol().lock() ) drawnSymbol = parent.get(); else + { wxCHECK( false, /* void */ ); + } } for( LIB_ITEM& item : drawnSymbol->GetDrawItems() ) diff --git a/eeschema/symbol_editor/symbol_edit_frame.cpp b/eeschema/symbol_editor/symbol_edit_frame.cpp index 538e525602..b48f13551d 100644 --- a/eeschema/symbol_editor/symbol_edit_frame.cpp +++ b/eeschema/symbol_editor/symbol_edit_frame.cpp @@ -832,7 +832,9 @@ void SYMBOL_EDIT_FRAME::SetCurSymbol( LIB_SYMBOL* aSymbol, bool aUpdateZoom ) if( std::shared_ptr rootSymbol = m_symbol->GetRootSymbol().lock() ) rootSymbolName = rootSymbol->GetName(); else + { wxCHECK( false, /* void */ ); + } int unit = GetUnit(); int convert = GetConvert();