<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - EDITING Rejecting direct formatting removes former direct formatting"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=127101">127101</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>EDITING Rejecting direct formatting removes former direct formatting
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.4.0.0.alpha0+ Master
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kelemeng@ubuntu.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>libreoffice@nisz.hu, nemeth@numbertext.org
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>83946
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=153578" name="attach_153578" title="Example file from Writer">attachment 153578</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=153578&action=edit" title="Example file from Writer">[details]</a></span>
Example file from Writer

If a paragraph has direct text formatting then we add another formatting as
tracked change and reject it, then the text formatting is reset to the default
settings instead of the formatting set before the tracked format change.
The same happens when we reject a paragraph join that was consequence of a
deletion and has modified the paragraph style. The second paragraph gets the
style of the first one, but upon rejecting the change does not get its former
style back.


Steps to reproduce:
    1. Open attached file. It has some character formatting set for the first
paragraph: bold, underline, superscript, highlight color, hyperlink. Change
tracking is enabled.
    2. Set the whole first paragraph as underlined.
    3. Reject this change.

For the paragraph join part:
    1. Delete the end of the paragraph formatted as Heading 1 and the beginning
of the paragraph formatted as Quotations
    2. The style of the second paragraph becomes Heading 1
    3. Reject this change. The second paragraphs style remains Heading 1
instead of reverting to Quotations.

Actual results:
The original character format settings are not restored.

Expected results:
Rejecting Character formatting should restore former character formatting.

LibreOffice details:
Version: 6.4.0.0.alpha0+ (x64)
Build ID: 3e64065612acec2eb29aa21e2b515953422256d7
CPU threads: 4; OS: Windows 6.3; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@62-TDF, Branch:master, Time: 2019-08-15_22:57:26
Locale: hu-HU (hu_HU); UI-Language: en-US
Calc: CL</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Tracking changes issues"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=83946">Bug 83946</a>] [META] Tracking changes issues
              </li>
          </ul>
        </div>
        <br>

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

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