mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-15 14:49:18 +00:00
type.ruby, text.setStyle, text.setText, text.fitHeadline, text.reshapeArea, text.reshapePath and text.setPathHandle recorded an undo step even when the call left the type as it was: the same ruby reading again, a removal where there is no ruby, attributes the characters already have, the same text, a second run of Fit Headline, or a reshape by 0. Each now runs on a copy and records a step only when one of its type objects (or, for text.setStyle, a graph's kept label styles) changed; otherwise the undo and redo steps and the saved state stay as they were. Area Type Options already skips unchanged options, and Scale Text Attributes returns an error for type with no scale to bake, so neither changes. Type Orientation, Optical Margin Alignment, System Layout and Fractional Widths are fixed in #7505.