Always provide a SCH_SCREEN to SCH_COMMIT.

Fixes KICAD-YKY
This commit is contained in:
Jeff Young
2025-08-18 22:09:21 +01:00
parent c51d26e70a
commit a0940b10d4
9 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -198,7 +198,7 @@ void SCH_COMMIT::pushSchEdit( const wxString& aMessage, int aCommitFlags )
// We don't know that anything will be added to the entered group, but it does no harm to
// add it to the commit anyway.
if( enteredGroup )
Modify( enteredGroup );
Modify( enteredGroup, frame->GetScreen() );
// Handle wires with Hop Over shapes:
for( COMMIT_LINE& entry : m_entries )
@@ -222,7 +222,7 @@ void SCH_COMMIT::pushSchEdit( const wxString& aMessage, int aCommitFlags )
wxCHECK2( schItem, continue );
if( changeType == CHT_REMOVE && schItem->GetParentGroup() )
Modify( schItem->GetParentGroup()->AsEdaItem() );
Modify( schItem->GetParentGroup()->AsEdaItem(), entry.m_screen );
}
for( COMMIT_LINE& entry : m_entries )