[Worksheet] Fixed rotated polygons

This commit is contained in:
Salvador E. Tropea 2023-07-21 09:35:02 -03:00
parent 3460cdcf67
commit 6f8586e8cb
2 changed files with 3 additions and 2 deletions

View File

@ -6,7 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.6.4] - UNRELEASED
### Fixed
- Rotated polygons used in the worksheet (#466)
## [1.6.3] - 2023-06-26
### Added

View File

@ -381,7 +381,7 @@ class WksPolygon(WksDrawing):
s.SetWidth(e.line_width)
s.SetLayer(p.layer)
if e.rotate:
s.Rotate(pos, e.rotate*10)
s.Rotate(GS.p2v_k7(pos), e.rotate*10)
p.board.Add(s)
p.pcb_items.append(s)
pos += posi