mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-06 19:54:13 +02:00
6a681cde67
In the element editor, changing the width of a right-aligned or centred dynamic text field (with the width box) moved its aligned edge: the field always grew or shrank from its left edge, so a right-aligned field's right edge moved. PartDynamicTextField::setTextWidth() now keeps the point chosen by the alignment in place, with the prepareAlignment()/finishAlignment() pair setPlainText() and setFont() already use. Not while the field is read from the .elmt, whose saved position is the one to keep. No file format change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>