Quiet gcc warning about assignment

This commit is contained in:
Marek Roszko 2020-10-24 00:50:02 -04:00
parent fde4e247d8
commit 1c0700fbc4
1 changed files with 2 additions and 2 deletions

View File

@ -259,9 +259,9 @@ bool SCH_EDIT_FRAME::SchematicCleanUp( SCH_SCREEN* aScreen )
// See if we can merge an overlap (or two colinear touching segments with
// no junction where they meet).
SCH_LINE* mergedLine = nullptr;
SCH_LINE* mergedLine = secondLine->MergeOverlap( aScreen, firstLine, true );
if( mergedLine = secondLine->MergeOverlap( aScreen, firstLine, true ) )
if( mergedLine != nullptr )
{
remove_item( firstLine );
remove_item( secondLine );