https://bugs.documentfoundation.org/show_bug.cgi?id=154044
--- Comment #15 from Mike Kaganski <[email protected]> --- (In reply to Xisco FaulĂ from comment #14) Without looking into the code: 1. If prior to step 2 in comment 0, you put anything into the columns that you will select later, then the rest will work as expected. Indeed, the bibisected commit 9e2d48b9e04f7ea895fb095699c32ed8a44eb129 suggests just that. 2. If you do this modified sequence: 1. Open Calc 2. Select columns A:C 3. Apply yellow background 4. Select columns A:D 5. Apply red background 6. Undo then the "Undo" step will undo the change in columns A:C, which suggests that step 3 created the structures needed for the Undo, and later edits there work as expected. The problem seems to be that there is no undo entry for applying format to *previously unallocated* columns. They are created with the new settings, and not "unallocated" on Undo (not unallocating them is likely OK itself, but the code allocating them should add something to the current Undo action). Sorry, can't work on this at the moment; hope these general ideas could be helpful (first of all, no idea if they are even correct). -- You are receiving this mail because: You are the assignee for the bug.
