mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 21:42:59 -05:00
When the Type tool leaves an empty text object, Discard Empty Type takes back the step that made it, which also frees the text's node ID. It did not advance the document's rollback count, so a value typed in a panel field for the text and not yet committed (Opacity, for example) stayed in the field, and the next Enter applied it to a new object that took the same ID. Discard Empty Type now advances the count. A command that panics puts back every document it changed. That restore now advances the rollback count of each document whose snapshot it puts back, for the same reason. Tests: an engine test for each restore, and a Transparency panel test that types 20+ in Opacity for an empty text, discards it, selects a new rectangle with the same ID and types 1 and Enter.