Python pcbnew Set/GetTimeStamp fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Undecided
|
jean-pierre charras |
Bug Description
I wrote a plugin for stitching via's in the PCB, but since several versions it doesn't work anymore.
The GetTimeStamp and SetTimeStamp functions don't work as expected
SampleCode:
def DeleteVias(self):
for via in target_tracks:
if via.Type() == PCB_VIA_T:
if via.GetTimeStamp() == 33:
Output of the "print":
<class 'SwigPyObject'> <Swig Object of type 'timestamp_t *' at 0x7f4aea6ec720>
swig/python detected a memory leak of type 'timestamp_t *', no destructor found.
Changed in kicad: | |
milestone: | none → 5.1.4 |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
Oh I forgot the version, sorry
Version: 5.1.3-ffb9f22~ 84~ubuntu18. 04.1, release build