Bug 167535 - Fileopen DOCX Added line number for floating tables
Summary: Fileopen DOCX Added line number for floating tables
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Mike Kaganski
URL:
Whiteboard: target:26.2.0
Keywords:
Depends on:
Blocks: DOCX-Bullet-Number-Outline-Lists DOCX-Floatingtable
  Show dependency treegraph
 
Reported: 2025-07-17 06:49 UTC by Mike Kaganski
Modified: 2025-07-17 15:52 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2025-07-17 06:49:57 UTC
This is split from bug 167526.

Open attachment 201488 [details].
The line numbering there must count from 1 to 5 (as in Word); in Writer, it goes from 1 to 6.

This bug does not focus on missing (not shown) number 2 for paragraph between the first and second tables. It is only about extra number 3 (not shown after commit 441aed20b95ee40dec1df72fb8e8167d0e48c0c4) between tables 2 and 3, which shifts numbering down, and making the paragraph under table 3 have unexpected number 4 (instead of correct 3).
Comment 1 Mike Kaganski 2025-07-17 07:20:11 UTC
https://gerrit.libreoffice.org/c/core/+/187982
Comment 2 Commit Notification 2025-07-17 08:23:31 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/14f4ea109d4cd8fe50fd419f51e3370c74169343

tdf#167535: Ignore dummy anchor nodes in line numbering

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Commit Notification 2025-07-17 15:51:26 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/88d907de9d42464136489bc66b46c7411652c5e0

Revert "tdf#167535: Ignore dummy anchor nodes in line numbering"

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Commit Notification 2025-07-17 15:52:29 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/64299360eac4ae1cb5eb511730c21db1d191190f

tdf#167535: Ignore dummy anchor nodes in line numbering (take 2)

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.