Bug 167540 - Empty line after a floating table has no line number with line numbering activated
Summary: Empty line after a floating table has no line number with line numbering acti...
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: Line-Numbering
  Show dependency treegraph
 
Reported: 2025-07-17 10:19 UTC by Mike Kaganski
Modified: 2025-07-17 17:25 UTC (History)
0 users

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 10:19:08 UTC
This is split from bug 167526.

Open attachment 201488 [details].
There is no number 2 for the empty paragraph between the first and second tables.

Removing the first table (put cursor somewhere inside it, Table->Delete->Table) makes the number appear.

The problem is, that the empty paragraph line is considered a "dummy" (used for fly); it is decided in SwLineLayout::CalcLine, and checked in SwTextFrame::PaintExtraData.
Comment 1 Mike Kaganski 2025-07-17 15:49:21 UTC
https://gerrit.libreoffice.org/c/core/+/188016
Comment 2 Commit Notification 2025-07-17 17:25:43 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/5355b3ec3925ddd146a6e3dd6ba28a816b39c66c

tdf#167538, tdf#167540: better check if the line is dummy

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.