mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-11 14:44:15 +02:00
a2880ad79e
Two pieces of cable XML went into every file the program saved, whether the project had cables or not (non-blocking review comment by ispyisail). Resaving one of the example projects added both of them. - <cable_autonums> is now written only when it holds something: a named rule, an axis other than the default, the numbering question answered with no, or a rule of its own. When it is missing, the reader falls back to exactly the defaults a project which never touched cable numbering has, so nothing changes for those files. That is deliberately not "only when the project has cables", which would cost data: a rule configured before the first cable is drawn and an axis chosen before it are answers only this element can carry, and the question answered with no has to survive even if the cable which prompted it was cancelled again. - the font attribute of <xref> is now written only when there is one. Only the cable cross-reference has a font of its own; writing it unconditionally put font="" on every cross-reference type of every project, and an absent attribute reads back as no font, which is what all the others are. Verified by resaving examples/741.qet, examples/Projet_vierge.qet and examples/affuteuse_250h.qet: before, cable_autonums=1 and font="" on each; after, none of them. A cable project of the reviewer's own keeps <cable_autonums axis_priority="y" current_autonum="Cable"> with its rule and its real fonts, and only loses the four empty font attributes. ctest 92/93, the one failure being the pre-existing headless tst_menubarkeyboard.