<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 - Regression from bug 123259 when anchoring a graphic as character"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=125039">125039</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Regression from bug 123259 when anchoring a graphic as character
          </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>roland65@free.fr
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=151088" name="attach_151088" title="Test document to reproduce the regression">attachment 151088</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=151088&action=edit" title="Test document to reproduce the regression">[details]</a></span>
Test document to reproduce the regression

Resolution of <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Assert when add a new line after a form control (in design mode)"
   href="show_bug.cgi?id=123259">bug #123259</a> (LO release 6.2.3.1 and above) has introduced a
regression that occurs when anchoring a graphic object *as character* in
Writer.

Steps to reproduce:

1. Download the test document and open it in Writer 6.2.3.1 (or above)

2. Right click on the graphic and select menu item "Anchor / As Character"

3. As expected, the graphic is now anchored as character, but the graphic is
*deselected*.

4. Press Escape. The text cursor is shown *after* the graphic.

This is an incorrect behaviour.

First, anchoring a graphic should not deselect it. Note that doing the test
with anchoring to page, to paragraph and to character do not deselect the
graphic.

Second, after Escape is pressed, the text cursor should be located before the
graphic to be consistent with the behaviour of anchoring to page, to paragraph
and to character.

This regression can lead to serious issues when developing macros for Writer.
Indeed it breaks the TexMaths extension (<a href="http://roland65.free.fr/texmaths">http://roland65.free.fr/texmaths</a>) that
I develop. TexMaths worked fine in LO 6.2.2.2 and before.

System: Ubuntu Linux 18.04.2 64 bits
Libreoffice 6.2.3.2 downloaded from www.libreoffice.org

I did all the tests with a *fresh profile*.

I traced the regression back to <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Assert when add a new line after a form control (in design mode)"
   href="show_bug.cgi?id=123259">bug #123259</a> by compiling and bisecting and I
found the problematic commit is 214e6ed5286566e689a4ef13a9115e2ad38fff57.</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>