Fix possible null dereference (from Coverity scan).
This commit is contained in:
parent
c27e278e58
commit
8abfc13053
|
@ -179,7 +179,7 @@ int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent )
|
|||
{
|
||||
SCH_ITEM* sch_item = (SCH_ITEM*) selection.Front();
|
||||
bool appendUndo = sch_item && sch_item->IsNew();
|
||||
bool placingNewItems = sch_item->IsNew();
|
||||
bool placingNewItems = sch_item && sch_item->IsNew();
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
// Setup a drag or a move
|
||||
|
|
Loading…
Reference in New Issue