Skip to content

fix(objects): keep an object's alignment when it is renamed - #172

Merged
dustenhubbard merged 3 commits into
mainfrom
up/rename-keeps-object-alignment
Nov 3, 2026
Merged

dustenhubbard merged 3 commits into
mainfrom
up/rename-keeps-object-alignment

Conversation

@dustenhubbard

Copy link
Copy Markdown
Member

Renaming an object reset a non-default object alignment to the series alignment. The rename copies the object's attributes to the new name, but saving the first section then treats it as a new object and gives it the series alignment, so that section was measured in the old alignment and the rest in the series one. A new object now takes the series alignment only when it has none, so a renamed object keeps its own. Includes a test.

Renaming an object makes a new one under the new name, and the first
section saved with it reset its alignment to the series alignment. That
section was measured in the old alignment and every later one in the
series alignment. A new object now takes the series alignment only when
it has none of its own, so a renamed object keeps the one it had.
A renamed object keeps its alignment and is measured in it on every
section, and a new object still takes the series alignment.
@dustenhubbard dustenhubbard added the reviewed A human authorized this merge (vcs-guard Gate 1 evidence) label Nov 3, 2026
@dustenhubbard
dustenhubbard merged commit fc46113 into main Nov 3, 2026
10 of 11 checks passed
@dustenhubbard
dustenhubbard deleted the up/rename-keeps-object-alignment branch November 3, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed A human authorized this merge (vcs-guard Gate 1 evidence)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant