Bug 149241 - Text flow doesn't adapt with image anchored to character (fine with to paragraph)
Summary: Text flow doesn't adapt with image anchored to character (fine with to paragr...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2022-05-23 10:29 UTC by Telesto
Modified: 2023-05-13 11:01 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (480.86 KB, application/vnd.oasis.opendocument.text)
2022-05-23 10:29 UTC, Telesto
Details
screenshot for preferences (24.06 KB, image/png)
2022-05-23 12:22 UTC, Rainer Bielefeld Retired
Details
Example file (487.35 KB, application/vnd.oasis.opendocument.text)
2022-05-23 17:40 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2022-05-23 10:29:37 UTC
Description:
when the anchor character needed to get to the previous page, but the image couldn't then fit to that previous page, thus preventing the move of the line to the previous page. In that case, the expected outcome would be all the previous lines of the paragraph to stay on the previous page, the line with anchor stay on the next page, and simply some white space appear in the bottom of the previous page. The actual result (the bug IMO) currently is that in this case, the *whole paragraph* jumps to the next page, and stays there until there's room on the previous page to accommodate the image.

Steps to Reproduce:
1. open the attached file
2. Place the cursor at start of the red highlighted area
3. CTRL+SHIFT ARROW DOWN (selecting the red highlighted area)
4. Backspace
5. CTRL+SHIFT ARROW DOWN (selecting the yellow highlighted area)
6. Backspace
7. Notice the empty area on page 1.
8. Save and reload -> The layout as expected

Variant
9. open the attached file
10. Place the cursor at start of the red highlighted area
11. CTRL+SHIFT ARROW DOWN (selecting the red highlighted area)
12. Backspace
13. CTRL+SHIFT ARROW DOWN (selecting the yellow highlighted area)
14. Backspace
15. CTRL+Z twice.. expected: layout on file open.. 


Actual Results:
Text flow doesn't adapt

Expected Results:
It should


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: cdf8e971d5d46df4bcab35a99c4254df9459213f
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: en-US (nl_NL); UI: en-GB
Calc: CL Jumbo
Comment 1 Telesto 2022-05-23 10:29:55 UTC
Created attachment 180310 [details]
Example file
Comment 2 Telesto 2022-05-23 10:33:10 UTC
Also in
4.4.7.2

and in
Versie 4.0.0.3 (Bouw-id: 7545bee9c2a0782548772a21bc84a9dcc583b89)

and in
OpenOffice.org 2.2.0
Comment 3 Rainer Bielefeld Retired 2022-05-23 12:22:40 UTC
Created attachment 180311 [details]
screenshot for preferences

REPRODUCIBLE with Installation of Version: 7.3.3.2 (x64) 
Build ID: d1d0ea68f081ee2800a922cac8f79445e4603348
CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE | Calc: threaded | ElementaryTheme | My normal User Profile as per original report and also if I do Badspaces on and on above red highlighted paragraph.

Might be caused by paragraph settings as per attache screenshot? and maybe even intended behavior for that preference? I'm not a layout expert.
Comment 4 Rainer Bielefeld Retired 2022-05-23 12:34:01 UTC
> Might be caused 
No, behavior stays if I uncheck both for all paragraphs.
Comment 5 Telesto 2022-05-23 17:40:36 UTC
Created attachment 180318 [details]
Example file

Slightly different, approach.. but likely same area
1. Open the attached file
2. Put the cursor after the yellow highlighting 
3. Press Enter.. Notice parallel wrap being disabled
Comment 6 Telesto 2022-05-24 08:29:13 UTC
(In reply to Telesto from comment #5)
> Created attachment 180318 [details]
> Example file
> 
> Slightly different, approach.. but likely same area
> 1. Open the attached file
> 2. Put the cursor after the yellow highlighting 
> 3. Press Enter.. Notice parallel wrap being disabled

Same happens if you select the image & drag the anchor
Comment 7 Dieter 2022-06-07 19:08:35 UTC
(In reply to Rainer Bielefeld Retired from comment #3)
> REPRODUCIBLE with Installation of Version: 7.3.3.2 (x64) 

=> NEW