From 53be16f40967bd88c9d27d9963879c11a256263e Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 10 Jun 2023 11:16:55 +0100 Subject: [PATCH] Stop confusing Covertiy. --- eeschema/sch_commit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/sch_commit.cpp b/eeschema/sch_commit.cpp index 6c4b664f8c..bfa189a8ef 100644 --- a/eeschema/sch_commit.cpp +++ b/eeschema/sch_commit.cpp @@ -152,7 +152,7 @@ void SCH_COMMIT::pushLibEdit( const wxString& aMessage, int aCommitFlags ) }); } - if( !( aCommitFlags & SKIP_UNDO ) && sym_frame ) + if( !( aCommitFlags & SKIP_UNDO ) ) { if( ent.m_copy ) { @@ -172,7 +172,7 @@ void SCH_COMMIT::pushLibEdit( const wxString& aMessage, int aCommitFlags ) if( selectedModified ) m_toolMgr->ProcessEvent( EVENTS::SelectedItemsModified ); - if( sym_frame && !( aCommitFlags & SKIP_SET_DIRTY ) ) + if( !( aCommitFlags & SKIP_SET_DIRTY ) ) sym_frame->OnModify(); clear();