mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-12 13:15:10 +00:00
Clear History moves the History Brush source into the cleared states' record and leaves History::brush_source empty. While Clear History can be undone, trim_with trims the cleared states, but it looked the pinned source up in the emptied field. The source state was then dropped like any other old state, and after Edit > Undo Clear History the History Brush had no source. trim_with now takes the source from Cleared::brush_source while Clear History can be undone, and from History::brush_source otherwise, as History::held picks the cleared or the live states.