[Libreoffice-bugs] [Bug 144599] New: Page count before an endnote marker

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Sep 19 01:16:47 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=144599

            Bug ID: 144599
           Summary: Page count before an endnote marker
           Product: LibreOffice
           Version: 7.1.5.2 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: johnsmithbeatles at gmail.com

Description:
Start Writer and create a new document from the default template.

Insert a page count field (Insert > Field > Page Count).

Notice the field shows 1.

Below this field, type "foo" followed by an endnote (Insert > Footnote and
Endnote > Endnote).

Type some text for the endnote itself (for example, "bar").

Return to your "foo". Notice that you have 2 pages now, but the page count
field above "foo" still shows 1.

Below "foo", insert another page count field. Notice it shows 2.

So in other words here is what you will end up

```
1
foo<superscript i>
2
```

This is bad. Both counters should update automatically.

Press F9 to update all fields. Now you have 

```
2
foo<superscript i>
2
```

You may think pressing F9 resolves the issue partly, but actually it doesn't.
For example, save this document and close it. Then open it again. Bam! You have

```
1
foo<superscript i>
2
```

again.

----------------------------

The real life case:

I have a template for technical writing with the following protected section in
the very beginning of the first page:

```
document title:
<here is the field for title>

page count:
<here is the field for page count>

aggigned template:
<here is the field for assigned template>
```

Each time I open a document with endnotes, the page count field shows me the
wrong number of pages.

Steps to Reproduce:
see above

Actual Results:
see above

Expected Results:
see above


Reproducible: Always


User Profile Reset: No



Additional Info:
see above

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210919/25c341b3/attachment.htm>


More information about the Libreoffice-bugs mailing list