Bug 155803 - Can't do "undo" or "redo" for freezing actions
Summary: Can't do "undo" or "redo" for freezing actions
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.1.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Undo-Redo Cell-Freeze
  Show dependency treegraph
 
Reported: 2023-06-12 21:49 UTC by AvidSeeker
Modified: 2023-08-09 14:24 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Google sheets have undo-able freezing actions (710.03 KB, video/webm)
2023-08-09 14:24 UTC, AvidSeeker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description AvidSeeker 2023-06-12 21:49:58 UTC
Description:
Freezing a cell doesn't get into the action stack.

Steps to Reproduce:
1. Select some cells
2. View > Freeze row
3. Click undo (Ctrl + Z)

Actual Results:
Undo's the last action

Expected Results:
Undo's the freezing action


Reproducible: Always


User Profile Reset: No

Additional Info:
.
Comment 1 raal 2023-06-28 19:50:51 UTC
Confirm with Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 244f9cf66bc36f229ccb5712bc8d80166b92266d
CPU threads: 4; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

and Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
Comment 2 ady 2023-06-29 01:33:51 UTC
I'm not sure there is a bug here. There is no real action (to undo), just as in many other cases such as:

* Resize window
* Split window
* Print preview
* scroll (up/down, right/left)
* View grid lines

Most (if not all) items related to View and/or Window (and some others too) do not add a new "action" that could later-on be undone.

Are there other spreadsheet tools that behave differently?
Comment 3 AvidSeeker 2023-06-29 06:03:14 UTC
Freezing action is a "real action" because it's saved to the .ods file. Resizing window, zooming in, or zooming out are not saved because they're only relevant for the current session, unlike freezing rows/cols.
Comment 4 ady 2023-06-30 01:35:29 UTC
(In reply to AvidSeeker from comment #3)
> Freezing action is a "real action" because it's saved to the .ods file.
> Resizing window, zooming in, or zooming out are not saved because they're
> only relevant for the current session, unlike freezing rows/cols.

The cell/position, visible "home" cell/position, zoom factor, view grid and many other settings are saved in the file but do not add any item to the (potentially) "undo" list.

Let's not get off-topic. We should leave this request for developer's evaluation. In the meantime, my question from comment 2 is still relevant: Are there other spreadsheet tools that behave differently?
Comment 5 AvidSeeker 2023-06-30 13:31:36 UTC
(In reply to ady from comment #4)

> Most items related to View...do not add a new action

Yes I agree. What I'm saying that freezing a row or a column is not *completely* related to views. It has a semantic meaning and change to the spreadsheet. When a column is frozen, it is regarded as a "key" column.

This is the equivalent of having <h1> in an HTML file. True that <h1> changes the view of the text, but it also has semantic meaning on the actual heading text. This is like saying applying <h1> only changes view, and so it's not a "real action".
Comment 6 AvidSeeker 2023-08-09 14:23:33 UTC
> Are there other spreadsheet tools that behave differently?

Here's a recording of Google sheets with undo-able freezing actions.

https://i.imgur.com/eEWYNdL.mp4
Comment 7 AvidSeeker 2023-08-09 14:24:02 UTC
Created attachment 188880 [details]
Google sheets have undo-able freezing actions