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

Fixes https://gitlab.com/kicad/code/kicad/issues/13728
This commit is contained in:
Jeff Young 2023-03-20 21:21:38 +00:00
parent aa11f78bbc
commit bb2a0f825a
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 )