Skip to content

Commit ab30e3b

Browse files
committed
[Added] Workaround for SetPlotOnAllLayersSelection change
KiCad 9.0.1 is full of API changes
1 parent 17e707d commit ab30e3b

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77

8-
## [2.5.8] - UNRELEASED
8+
## [2.5.8] - 2025-04-03
99
### Added
10+
* Support for broken KiCad 9.0.1 (which changed various details in the API)
1011
* Debug verbosity is now passed to children (#17)
1112

1213
### Changed

debian/changelog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
kidiff (2.5.8-1) UNRELEASED; urgency=medium
1+
kidiff (2.5.8-1) stable; urgency=medium
22

33
* The plug-in now compares all schematic pages
4+
* Added support for broken API in KiCad 9.0.1
45

56
-- Salvador Eduardo Tropea <[email protected]> Thu, 20 Mar 2025 09:25:54 -0300
67

kicad-diff.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,12 @@ def SetExcludeEdgeLayer(po, exclude_edge_layer, layer):
124124
# Doesn't work in 7.0.0. Bug: https://gitlab.com/kicad/code/kicad/-/issues/13841
125125
include = pcbnew.LSET()
126126
include.addLayer(layer)
127-
po.SetPlotOnAllLayersSelection(include)
127+
if (kicad_version_major == 9 and kicad_version_patch >= 1) or kicad_version_major > 9:
128+
# API changes in a patch release, this is how KiCad team works ...
129+
# They favor cosmetic changes ...
130+
po.SetPlotOnAllLayersSequence(include.Seq())
131+
else:
132+
po.SetPlotOnAllLayersSelection(include)
128133

129134

130135
def WriteBBox(board, hash_dir):

0 commit comments

Comments
 (0)