diff --git a/CHANGELOG.md b/CHANGELOG.md index 7985ed78..ab761c69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/kibot/out_qr_lib.py b/kibot/out_qr_lib.py index e1ce8396..cedc455b 100644 --- a/kibot/out_qr_lib.py +++ b/kibot/out_qr_lib.py @@ -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