From 9098750ba0b8840c87af011975fcc2352e6f7782 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 7 Jul 2025 12:17:10 +0100 Subject: [PATCH] Debugging. (Separate so Sentry can tell us which one fired.) --- eeschema/sch_commit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/sch_commit.cpp b/eeschema/sch_commit.cpp index 6781976271..1c61a668bb 100644 --- a/eeschema/sch_commit.cpp +++ b/eeschema/sch_commit.cpp @@ -264,7 +264,8 @@ void SCH_COMMIT::pushSchEdit( const wxString& aMessage, int aCommitFlags ) SCH_ITEM* schItem = dynamic_cast( ent.m_item ); SCH_SCREEN* screen = dynamic_cast( ent.m_screen ); - wxCHECK2( schItem && screen, continue ); + wxCHECK2( schItem, continue ); + wxCHECK2( screen, continue ); if( !schematic ) schematic = schItem->Schematic();