[Libreoffice-bugs] [Bug 91811] Editing char attributes in text boxes should handle Undo better

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Aug 22 20:12:50 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=91811

mwtjunkmail at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mwtjunkmail at gmail.com
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #2 from mwtjunkmail at gmail.com ---

Behavior has changed slightly since origination of this bug.

Using:

Version: 7.1.0.0.alpha0+ (x64)
Build ID: 8700bace8c0714d853f5df6918ab9c8bb3d81f77
CPU threads: 8; OS: Windows 10.0 Build 20197; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL

If you follow the original steps:

=====================
If you create a text box with "A"
Then you edit it, type "B C"
Select B, make background light purple
Select C, make background dark watermelon (the colors have no importance)
Click outside the text box
Type Ctrl-Z

I would expect a step by step Undo

Currently, text box becomes "A" with no bg color.
=====================

Undo does track the change to each character within the text box during any
single session of editing the text box's contents before clicking outside of
it.

However, if the user completes all the above edits and THEN clicks outside of
the text box and hits Control-Z (or Edit, Undo), the text box disappears
entirely (because Undo: Insert was the last edit tracked) or reverts to
whatever was last typed in the text box prior to the last set of edits.

Therefore, there IS a step-by-step undo, but it's at the current object's
level. While within the text box object, edits track changes within the object
as one would expect (reversing the colorization one Undo at a time of A, B, and
C).

Clicking outside of the text box tracks changes at the level above that,
meaning the entire container (Insert: Text Box) versus its contents.

So this works for me, based on my understanding of how Undo works.




Step-by-step undo DOES WORK if you click outside of the text box per editing
instance (change "A", click outside, change "B", click outside, etc).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200822/e5043f12/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list