Orthogonal dimension are always cardinal, even when their start points are not.

Fixes https://gitlab.com/kicad/code/kicad/issues/13728

(cherry picked from commit bb2a0f825a)
This commit is contained in:
Jeff Young 2023-03-20 21:21:38 +00:00
parent a713ee852c
commit ba4773e448
1 changed files with 1 additions and 1 deletions

View File

@ -1128,7 +1128,7 @@ int DRAWING_TOOL::DrawDimension( const TOOL_EVENT& aEvent )
grid.SetSnap( !evt->Modifier( MD_SHIFT ) );
grid.SetUseGrid( getView()->GetGAL()->GetGridSnapping() && !evt->DisableGridSnapping() );
if( step == SET_HEIGHT )
if( step == SET_HEIGHT && t != PCB_DIM_ORTHOGONAL_T && t != PCB_FP_DIM_ORTHOGONAL_T )
{
if( dimension->GetStart().x != dimension->GetEnd().x
&& dimension->GetStart().y != dimension->GetEnd().y )