<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 - Cross references to footnotes are not updated when inserting a new footnote with a lower number"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=118459">118459</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Cross references to footnotes are not updated when inserting a new footnote with a lower number
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.0.4.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (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>claudix.kernel@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I have noticed that cross references to footnotes are not updated when I insert
a new footnote with a lower number. Let me explain this scenario. 

I start with a document with three lines:

    This is the first line
    This is the second line
    This is the third line

Then I do these steps:

 1. Insert a footnote on the second line, with text "Footnote A"
 2. Insert a cross-reference to that footnote on the third line and format the
number as superscript.

After this, I have the following text (NOTE: I use the caret ^ to depict a
superscript)

    This is the first line 
    This is the second line ^1
    This is the third line ^1

And at the bottom of the page, I have this footnote:

    1 Footnote A

Good, so far. Now I want to put a footnote on the first line, with text
"Footnote B". Then, I get:

    This is the first line ^1
    This is the second line ^2
    This is the third line ^1

As you can see, the third line's cross reference is not updated. At the bottom
of the page I have the expected footnotes:

    1 Footnote B
    2 Footnote A

The footnote references should be updated whenever the footnotes change. I
confirm this unexpected behaviour even after Tools>Update>Update All.</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>