[Fixed][QR lib update] Problems on KiCad 5

- Related to moving the footprint to the bottom
This commit is contained in:
Salvador E. Tropea 2022-10-14 11:08:42 -03:00
parent e733ba54c4
commit 1fdd3c26d1
2 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Diff:
- Now the default is to compare all the schematic pages. (#319)
### Fixed
- QR lib update: Problems when moving the footprint to the bottom for
KiCad 5.
## [1.4.0] - 2022-10-12
### Added

View File

@ -337,6 +337,8 @@ class QR_LibOptions(BaseOptions):
qrc, size, full_size, center, size_rect = compute_size(qr, is_sch=False)
# In which layer are the drawings? (default to the original)
layer = self.find_layer(sexp, qr.layer)
if isinstance(layer, Symbol):
layer = layer.value()
# Remove old drawing
sexp[:] = list(filter(lambda s: not is_symbol('fp_poly', s), sexp))
# Add the new drawings