Bug 157005

Summary: Floating table view glitches while inserting lines
Product: LibreOffice Reporter: Stéphane Guillou (stragu) <stephane.guillou>
Component: WriterAssignee: Miklos Vajna <vmiklos>
Status: VERIFIED FIXED    
Severity: normal CC: aron.budea, vmiklos
Priority: medium    
Version: 24.2.0.0 alpha0+   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=156682
Whiteboard: target:24.2.0 target:7.6.3
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 139532    
Attachments: sample DOCX
screenshot of glitches

Description Stéphane Guillou (stragu) 2023-08-30 10:05:05 UTC
Created attachment 189244 [details]
sample DOCX

Follow-up from bug 156682.

Steps:
1. Open attachment
2. With cursor at end of cell B1, press Enter to insert a new line: cell extends to second page as expected.
3. Keep pressing Enter

Result:
Cursor seems to jump to cell B2 and lines below without adding lines (but the table frame extends). Typing overlays text on existing text.

Clicking elsewhere or changing the zoom level sometimes refreshes the view to what is expected.

Tested with:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 16d43b7c5396d6382926d514dc9ce10b3ce94cba
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2023-08-30 10:07:40 UTC
Created attachment 189245 [details]
screenshot of glitches

Sample of what you might end up with by adding lines, adding text and removing lines:
- frame does not match table size
- gap inside table
- overlapping text runs

Same with gtk3 and gen VCL plugins.
Comment 2 Miklos Vajna 2023-08-31 06:26:22 UTC
Thanks, will try to reproduce later.
Comment 3 Miklos Vajna 2023-09-14 11:45:34 UTC
Yes, I can reproduce the overlapping text in case I press enter twice at the end of B1.
Comment 4 Commit Notification 2023-09-19 07:37:46 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/cf2be3754b4c48382a61e044209c077bf59c72f2

tdf#157005 sw floattable: fix missing format of next row in follow fly

It will be available in 24.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 5 Commit Notification 2023-09-25 12:06:53 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "libreoffice-7-6":

https://git.libreoffice.org/core/commit/1b6ed32cd87c40e3b3de4dac4efa035c6394a1d5

tdf#157005 sw floattable: fix missing format of next row in follow fly

It will be available in 7.6.3.

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 6 Stéphane Guillou (stragu) 2023-09-27 17:21:10 UTC
Thanks Miklos, looking good now in:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2902ab24ecc5ffbf4907ea83b2028508b9de6364
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded