mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-15 23:02:32 +00:00
* Tables: table.setCell records no undo step when the cells already have the values When every value table.setCell sets already matches the target cells, the command leaves the document as it is: no undo step and no new revision. Setting a cell's text to the text it already holds keeps its story, and a stroke the chosen edges already show as their highest-priority local stroke is not renumbered. The edited table replaces the old one directly, so a change copies the table once, as before. * Tables: table.setCell keeps a cell's character formats when the text is the same A table.setCell call whose text matched a cell with more than one character format replaced the text anyway: every character took the first character's format and the call recorded an undo step. The cell's story is now left as it is when its text already matches. * Tables: table.setCell applies a stroke when a neighbor draws the shared edge When both copies of a shared edge had the table's highest priority and the neighboring cell won the tie, a stroke edit whose result matched the selected cell's own copy was skipped, and the edge kept the neighbor's stroke. The edit is now skipped only when the selected cell's stroke is the one drawn. * Tables: table.setCell checks the whole drawn side before skipping a stroke A repeated stroke edit was applied again, with a new undo step, after any other edge in the table had been edited, because the check required the edge to hold the table's highest priority. The check now compares the cell's stroke with every part of the side as drawn, so an edit elsewhere does not count, and a merged cell's side still takes the edit when a neighbor draws a different stroke along part of it.