Bug 141143 - Extra paragraph is inserted after dragging an image
Summary: Extra paragraph is inserted after dragging an image
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.7.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Images
  Show dependency treegraph
 
Reported: 2021-03-21 09:14 UTC by GAIDO Gilles
Modified: 2024-08-06 15:45 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
example (169.87 KB, application/vnd.oasis.opendocument.text)
2021-03-21 09:25 UTC, GAIDO Gilles
Details
BETTER EXAMPLE 2 (24.16 KB, application/vnd.oasis.opendocument.text)
2021-03-21 09:55 UTC, GAIDO Gilles
Details
answer to Dieter - 2021-04-11 (166.63 KB, application/pdf)
2021-04-11 08:33 UTC, GAIDO Gilles
Details

Note You need to log in before you can comment on or make changes to this bug.
Description GAIDO Gilles 2021-03-21 09:14:29 UTC
Description:
(Example attached)
I created, saved and closed an ODT document (all with Writer 7.0.5.2) that contains a small TABLE OF CONTENTS on the first page. 
When I open this document again, I see that the TABLE OF CONTENTS is splitted, the beginning is still on the first page, but the last chapters are on the second without any reason.

Steps to Reproduce:
1. install LO 7.0.5.2 on windows 8.1 (x64) and clear the profile (C:\Users\myUser\AppData\Roaming\LibreOffice\)
2. create a document with writer that contains several TITLE1 and TITLE 2 chapters 
3. Add a TOC
4. Close the document
5. Open it again

Actual Results:
the table of contents that fits on 1 page is splitted on 2 pages

Expected Results:
a TOC on the first page


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.0.5.2 (x64)
Build ID: 64390860c6cd0aca4beafafcfd84613dd9dfb63a
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); Langue IHM : fr-FR
Calc: CL
Comment 1 GAIDO Gilles 2021-03-21 09:25:05 UTC
Created attachment 170602 [details]
example
Comment 2 GAIDO Gilles 2021-03-21 09:55:07 UTC
Created attachment 170603 [details]
BETTER EXAMPLE 2

this new example shows clearly that the problems is linked with the IMAGE added just BEFORE the TOC
Comment 3 Dieter 2021-04-10 16:26:12 UTC
I confirm the problem with

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 807d059d99e7b99fe45a712428befa17ffa44858
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

But I agree, that the problem is about the image

Steps to reproduce:
1. Open attachment 170603 [details] => TOC is splitted
2. select image on page two and drag it a litkte above, so that it is still after the text, abut TOC is now on one page. Notive, that there are five empty paragraphs between image and TOC
3. Save
4. Reload

Actual result:
TOC is again splitted on two pages and an extra empty paragraph is above or below the image.

Gaido, do you get the same result?
=> NEEDINFO
Comment 4 GAIDO Gilles 2021-04-11 08:31:17 UTC
(In reply to Dieter from comment #3)
> I confirm the problem with
> 
> Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
> Build ID: 807d059d99e7b99fe45a712428befa17ffa44858
> CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL:
> win
> Locale: de-DE (de_DE); UI: en-GB
> Calc: CL
> 
> But I agree, that the problem is about the image
> 
> Steps to reproduce:
> 1. Open attachment 170603 [details] => TOC is splitted
> 2. select image on page two and drag it a litkte above, so that it is still
> after the text, abut TOC is now on one page. Notive, that there are five
> empty paragraphs between image and TOC
> 3. Save
> 4. Reload
> 
> Actual result:
> TOC is again splitted on two pages and an extra empty paragraph is above or
> below the image.
> 
> Gaido, do you get the same result?
> => NEEDINFO

Hi Dieter,

Thank you for your message. I confirm the behaviour.
I confirm also that the image is involved with the probleme.

In addition, I provide you another scenario to reproduce a weird behaviour without removing the image :


Step 1 -> I open the example2 ( attachment 170603 [details] ) where the table is splitted
Step 2 -> I refresh the table : table is not splitted (entirely displayed on page 1)
Step 3 -> I save and close the document
Step 4 -> I open it again : unfortunately the table is splitted again ...

( I add a PDF attachment to provide screen shots)

Regards
Gilles
Comment 5 GAIDO Gilles 2021-04-11 08:33:37 UTC
Created attachment 171097 [details]
answer to Dieter - 2021-04-11
Comment 6 GAIDO Gilles 2021-04-11 08:49:54 UTC
I also confirm that the problem affects Libre Office 6.4.6.2
( Xubuntu 20.04 ) 


> Version: 6.4.6.2
> Build ID: 1:6.4.6-0ubuntu0.20.04.1
> CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3; 
> Locale: en-US (en_US.UTF-8); UI-Language: en-US
> Calc: threaded
Comment 7 Dieter 2021-04-17 15:47:54 UTC
(In reply to GAIDO Gilles from comment #4)
> Thank you for your message. I confirm the behaviour.
> I confirm also that the image is involved with the probleme.

=> NEW and change of bug summary

> In addition, I provide you another scenario to reproduce a weird behaviour
> without removing the image :
Might be another problem, so let's focus on the problem with the image in this bug.
Comment 8 QA Administrators 2023-04-18 03:23:28 UTC Comment hidden (obsolete)
Comment 9 Telesto 2023-04-23 18:29:06 UTC
Still around
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 066b23115c2a360507e306a88da572554daefab7
CPU threads: 8; OS: Mac OS X 12.6.3; UI render: Skia/Raster; VCL: osx
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded
Comment 10 Telesto 2023-04-24 15:17:45 UTC
Also with
Versie: 4.4.7.2 
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: nl_NL

open as expected with
Versie: 4.2.0.4 
Build ID: 05dceb5d363845f2cf968344d7adab8dcfb2ba71
Comment 11 Buovjaga 2024-08-06 15:45:34 UTC
I confirm ToC being split to two pages with oldest of linux-64-24.2 bibisect repo, but not with 24.2.5 or master. I don't repro comment 3 with the newer versions.