mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
selectionTool can be null
need to guard the dereference Fixes https://gitlab.com/kicad/code/kicad/-/issues/21514
This commit is contained in:
parent
c995d47c87
commit
81ceb8d123
@ -1279,7 +1279,7 @@ void SCHEMATIC::CleanUp( SCH_COMMIT* aCommit, SCH_SCREEN* aScreen )
|
||||
|
||||
aCommit->Added( mergedLine, aScreen );
|
||||
|
||||
if( firstLine->IsSelected() || secondLine->IsSelected() )
|
||||
if( selectionTool && ( firstLine->IsSelected() || secondLine->IsSelected() ) )
|
||||
selectionTool->AddItemToSel( mergedLine, true /*quiet mode*/ );
|
||||
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user