Get proper LINE_MODE type from tool event.

Properly fix https://gitlab.com/kicad/code/kicad/-/issues/15053
This commit is contained in:
Ian McInerney 2023-06-25 13:43:32 +01:00
parent b00361d136
commit 118b815824
1 changed files with 1 additions and 1 deletions

View File

@ -2231,7 +2231,7 @@ int SCH_EDITOR_CONTROL::ToggleOPCurrents( const TOOL_EVENT& aEvent )
int SCH_EDITOR_CONTROL::ChangeLineMode( 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 ); m_toolMgr->RunAction( ACTIONS::refreshPreview );
return 0; return 0;
} }