<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 - Formulas getting broken after switching between visual and code editor."
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=130741">130741</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Formulas getting broken after switching between visual and code editor.
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>Formula Editor
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>anton-tsyganenko@yandex.ru
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
After switching between visual and code editing, formulas are getting broken.

Steps to Reproduce:
1. set the cursor to the visual formula edit area, type "/a+b↓c+d", the code
will be `{ { a + b } over { c + d } }`
2. swich to the code editor, make a change (for example, change "d" to "e")
3. switch to the visual area, set the cursor after the fraction and type a
space, the code becomes `{ { a + b over c + e } ~ }`, however the formula still
looks correctly.
4. switch back the code editor, make a change (for example, remove the tilde).


Actual Results:
The formula is now broken and looks like "a + (b/c) + e".

Expected Results:
The only change that occurs in code on step 3 is adding tilde, and the formula
remains to look correctly after step 4, like "(a+b)/(c+e)"


Reproducible: Always


User Profile Reset: No



Additional Info:
Tested on LO 6.4.0.3 on Arch Linux, but I've been noticing this problem for at
least a few months, so it may be much older.</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>