[Worksheet] Fixed rotated polygons
This commit is contained in:
parent
3460cdcf67
commit
6f8586e8cb
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue