Browse Source

Don't dereference a possibly-invalid optional

6.0.7
Jon Evans 5 years ago
parent
commit
24cd174a23
  1. 3
      pcbnew/router/pns_dragger.cpp

3
pcbnew/router/pns_dragger.cpp

@ -412,7 +412,8 @@ void DRAGGER::optimizeAndUpdateDraggedLine( LINE& aDragged, const LINE& aOrig, c
optimizer.SetRestrictArea( *affectedArea );
optimizer.Optimize( &aDragged );
OPT_BOX2I optArea = *aDragged.ChangedArea( &aOrig );
OPT_BOX2I optArea = aDragged.ChangedArea( &aOrig );
if( optArea )
Dbg()->AddBox( *optArea, 4 );
}

Loading…
Cancel
Save