Browse Source

Fix RecombinePad when pad is rotated.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18348
jobs
Jeff Young 1 year ago
parent
commit
556efd836b
  1. 2
      pcbnew/pad.cpp

2
pcbnew/pad.cpp

@ -2017,8 +2017,8 @@ std::vector<PCB_SHAPE*> PAD::Recombine( bool aIsDryRun, int maxError )
shape->SetFilled( true );
shape->SetStroke( STROKE_PARAMS( 0, LINE_STYLE::SOLID ) );
shape->SetPolyShape( existingOutline );
shape->Rotate( VECTOR2I( 0, 0 ), - GetOrientation() );
shape->Move( - ShapePos() );
shape->Rotate( VECTOR2I( 0, 0 ), - GetOrientation() );
AddPrimitive( shape );
}
}

Loading…
Cancel
Save