<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:mwtjunkmail@gmail.com" title="mwtjunkmail@gmail.com">mwtjunkmail@gmail.com</a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Editing char attributes in text boxes should handle Undo better"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=91811">bug 91811</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>mwtjunkmail@gmail.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>WORKSFORME
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Editing char attributes in text boxes should handle Undo better"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=91811#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Editing char attributes in text boxes should handle Undo better"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=91811">bug 91811</a>
              from <span class="vcard"><a class="email" href="mailto:mwtjunkmail@gmail.com" title="mwtjunkmail@gmail.com">mwtjunkmail@gmail.com</a>
</span></b>
        <pre>
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).</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>