Get proper LINE_MODE type from tool event.
Properly fix https://gitlab.com/kicad/code/kicad/-/issues/15053
This commit is contained in:
parent
b00361d136
commit
118b815824
|
@ -2231,7 +2231,7 @@ int SCH_EDITOR_CONTROL::ToggleOPCurrents( const TOOL_EVENT& aEvent )
|
|||
|
||||
int SCH_EDITOR_CONTROL::ChangeLineMode( const TOOL_EVENT& aEvent )
|
||||
{
|
||||
m_frame->eeconfig()->m_Drawing.line_mode = aEvent.Parameter<int>();
|
||||
m_frame->eeconfig()->m_Drawing.line_mode = aEvent.Parameter<LINE_MODE>();
|
||||
m_toolMgr->RunAction( ACTIONS::refreshPreview );
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue