<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 - Setting language via menu and then clearing direct formatting resets paragraph style"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=125790">125790</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Setting language via menu and then clearing direct formatting resets paragraph style
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.2.3.2 release
          </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>cybermonktitan@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
Setting the language for the entire document in OO Writer, or for a partial
selection, breaks the behaviour of removing direct formatting for the part that
has its language changed: subsequently removing direct formatting from the
entire document reset the paragraph style of each paragraph. This destructive
operation is only visible on save/reload.

Interestingly this effect only occurs when an already listed language from the
menu is chosen and now when the language is selected via the dialog (More...
menu option). Changing the language of the selection or the entire document
triggers this bug, but changing the paragraph language seems not to be
affected.

Steps to Reproduce:
1. Create a simple document with, say, 5 paragraphs of lorem ipsum
2. Assign each paragraph the text body style (Ctrl+A, Ctrl+0)
3. Save, Close, Re-Open
4. Perform either 4a or 4b
4a. Click Tools->Language->For All Text->[A listed language]
4b. Select the mid three paragraphs, click Tools->Language->For Selection->[A
listed language]
5. Remove direct formatting from all text: Ctrl+A, Ctrl+M
5a. Observe: no changes
6. Save (Ctrl+S), Close, Re-Open
7. Observe the reset of the styles

Actual Results:
The paragraph style of the paragraphs that have their language 'changed' (even
if it's the same as before) are reset to the default style.

Expected Results:
No paragraph styles are affected.


Reproducible: Always


User Profile Reset: No



Additional Info:
Versie: 6.2.4.2 (x64)
Build ID: 2412653d852ce75f65fbfa83fb7e7b669a126d64
CPU-threads: 8; Besturingssysteem: Windows 10.0; UI-render: standaard; VCL:
win; 
Locale: nl-NL (nl_NL); UI-taal: nl-NL
Calc: threaded

Version: 6.2.3.2 (x64)
Build ID: aecc05fe267cc68dde00352a451aa867b3b546ac
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
Locale: en-US (en_NL); UI-Language: en-GB
Calc: threaded</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>