Browse Source

Catch default autowire case

Since we are dereferencing the optional, we need to ensure it exists in
all cases

Fixes https://gitlab.com/kicad/code/kicad/issues/10394
6.0.7
Seth Hillbrand 4 years ago
parent
commit
56d87a8613
  1. 4
      eeschema/tools/ee_selection_tool.cpp

4
eeschema/tools/ee_selection_tool.cpp

@ -419,6 +419,10 @@ int EE_SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
{
newEvt = EE_ACTIONS::drawLines.MakeEvent();
}
else
{
newEvt = EE_ACTIONS::drawLines.MakeEvent();
}
auto* params = newEvt->Parameter<DRAW_SEGMENT_EVENT_PARAMS*>();
auto* newParams = new DRAW_SEGMENT_EVENT_PARAMS();

Loading…
Cancel
Save