Browse Source

Fix possible null dereference (from Coverity scan).

merge-requests/53/head
Jeff Young 6 years ago
parent
commit
8abfc13053
  1. 2
      eeschema/tools/sch_move_tool.cpp

2
eeschema/tools/sch_move_tool.cpp

@ -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…
Cancel
Save