[QR Lib][Fixed] Interference with plot outputs

When used from the preflight the name of the file changed to the name
of a temporal, generating problems with the plot outputs, like
pcb_print
This commit is contained in:
Salvador E. Tropea 2023-12-04 13:54:26 -03:00
parent 2f432abc38
commit 83e15f8209
2 changed files with 5 additions and 0 deletions

View File

@ -111,6 +111,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Copy Files:
- Warnings when using both, the STEP and WRL model, of the same component
- Fail to detect 3D models subdirs when running alone
- QR Lib:
- When used from the preflight the name of the file changed to the name of a
temporal, generating problems with the plot outputs, like pcb_print
## [1.6.3] - 2023-06-26

View File

@ -413,6 +413,8 @@ class QR_LibOptions(BaseOptions):
with open(prl_name, 'rt') as f:
prl = f.read()
GS.board.Save(GS.pcb_file)
# After saving the file the name isn't changed, we must force it!!!
GS.board.SetFileName(GS.pcb_file)
if prl:
with open(prl_name, 'wt') as f:
f.write(prl)