https://bz.apache.org/ooo/show_bug.cgi?id=128601

          Issue ID: 128601
        Issue Type: DEFECT
           Summary: Undoing an applied character style to a selection does
                    not work properly.
           Product: Writer
           Version: 4.1.15
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P5 (lowest)
         Component: formatting
          Assignee: issues@openoffice.apache.org
          Reporter: a...@freenet.de
  Target Milestone: ---

1. open a new writer document and enter some text: "Lorem ipsum dolor sit amet"
2. save, close and re-open it (not strictly necessary but it makes the effect
clearer)
4. select a word by double-clicking on it: "ipsum"
5. assign a character style clearly distinguishable from normal text like
"Strong Emphasize"
6 collapse the selection by pressing ESC
7 select character style "Standard" (so that the next typed character would
appear in default text style)
8 undo twice (by toolbar icon, menu entry or ctrl-Z)

Changing the character style of the previously selected word to "Strong
Emphasize"should have been undone now and the word should appear in normal text
again, but it is still shown in "Strong Emphasize". 

However, the document is now marked as unchanged, as can be seen on the "Save"
icon in the toolbar. Closing the document would not ask to save it. Saving the
document with "Save As" under a different name, on the other hand, will contain
the change.

Interesting also the following effect, continuing immediately after point 8.
above:

9. re-do once and undo once, now the selection is undone properly
10. re-do twice and undo twice, the problem is back again

The issue has been re-produced on the following OO and LO versions:

OpenOffice 4.1.15 on Debian 12.5
LibreOffice 7.4.7.2 on Debian 12.5
OpenOffice 4.1.15 on Windows
LibreOffice 7.0.7.2 on Debian 11.9
OpenOffice 4.1.15 on Debian 10.13
OpenOffice 4.1.6 on Windows 10

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to