Fix HV45 toggle during move

Action handled externally, so trigger internal updates on flag

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22025
This commit is contained in:
Seth Hillbrand
2025-10-21 16:44:12 -07:00
parent edc25f8ba0
commit a3e4a001bb
+9 -4
View File
@@ -498,6 +498,14 @@ bool EDIT_TOOL::doMoveSelection( const TOOL_EVENT& aEvent, BOARD_COMMIT* aCommit
do
{
VECTOR2I movement;
if( ( hv45Enabled != Is45Limited() ) )
{
hv45Enabled = Is45Limited();
configureAngleSnap( hv45Enabled );
displayConstraintsMessage( hv45Enabled );
}
editFrame->GetCanvas()->SetCurrentCursor( KICURSOR::MOVING );
grid.SetSnap( !evt->Modifier( MD_SHIFT ) );
grid.SetUseGrid( getView()->GetGAL()->GetGridSnapping() && !evt->DisableGridSnapping() );
@@ -872,10 +880,7 @@ bool EDIT_TOOL::doMoveSelection( const TOOL_EVENT& aEvent, BOARD_COMMIT* aCommit
}
else if( evt->IsAction( &PCB_ACTIONS::toggleHV45Mode ) )
{
hv45Enabled = Is45Limited();
configureAngleSnap( hv45Enabled );
displayConstraintsMessage( hv45Enabled );
evt->SetPassEvent( false );
evt->SetPassEvent( true );
}
else if( evt->IsAction( &ACTIONS::increment ) )
{