Bug 132225 - Page flow isn't updated after paste image and Undo (with image anchored as character) [see comment 9]
Summary: Page flow isn't updated after paste image and Undo (with image anchored as ch...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Anchor-and-Text-Wrap Paste Undo-Redo
  Show dependency treegraph
 
Reported: 2020-04-18 16:02 UTC by Telesto
Modified: 2023-01-09 10:41 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (460.02 KB, application/vnd.oasis.opendocument.text)
2020-04-25 17:04 UTC, Telesto
Details
Example file (variant 2) (478.14 KB, application/vnd.oasis.opendocument.text)
2022-05-08 18:28 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-04-18 16:02:16 UTC
Description:
Page flow isn't updated after Undo

Steps to Reproduce:
1. Open the attached file
2. Toggle formatting marks on
3. Copy the cat from page 1
4. Paste it somewhere at the yellow marking on page 4 -> empty page 6 without content as far I can tell
5. Go to the yellow marking on pag 17 & paste again
6. Press CTRL+Z (empty area on pag. 17)

Step 1-4 reported in bug 132222

Actual Results:
Text doesn't move back to pag. 17

Expected Results:
Should


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.0.0.alpha0+ (x64)
Build ID: 4475bcd83aac7e033fc5250f268eb922bd471e7b
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win; 
Locale: nl-NL (nl_NL); UI-Language: en-US
Calc: CL
Comment 1 Telesto 2020-04-18 16:27:37 UTC
Also in
Versie: 4.4.7.2 
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: nl_NL

and in
LibreOffice 3.5.7.2 
Build ID: 3215f89-f603614-ab984f2-7348103-1225a5b
Comment 2 Telesto 2020-04-18 16:29:46 UTC
Also in
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 3 Telesto 2020-04-19 10:07:50 UTC
Appears to be depending on anchoring
Comment 4 Telesto 2020-04-19 10:08:42 UTC
1. Open attachment 159682 [details]
2. Toggle formatting marks on
3. Copy the cat from page 1
4. Paste it somewhere at the yellow marking on page 4 -> empty page 6 without content as far I can tell
5. Go to the yellow marking on pag 17 & paste again
6. Press CTRL+Z (empty area on pag. 17)
Comment 5 Dieter 2020-04-25 09:30:02 UTC
I confirm it with

Version: 7.0.0.0.alpha0+ (x64)
Build ID: 962b415edb47187737a5f05c4ff3f6724a19c564
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-GB
Calc: threaded

Steps to reproduce:

1. Create a new document with text over two pages in one paragraph
2. Insert an image => Change anchor to "as character"
3. Copy that image put cursor somewhere at the end of page one and paste image => image is pasted on page 2 and there is some blank area on page 1
4. Undo

Result: Blank area is still there


Telesto, some remarks to your bug report and steps to reproduce (this is also a general comment to most of your reports): it would be very nice, if you try to narrow down the problem on your own and provide steps to reproduce more general. This would make the reports easier to reproduce, make it more obvious, that t is not a specific problem and give developers more hints for their work. Thank you.
Comment 6 Telesto 2020-04-25 17:04:34 UTC
Created attachment 159926 [details]
Example file

>it would be very nice, if
> you try to narrow down the problem on your own and provide steps to
> reproduce more general. This would make the reports easier to reproduce,
> make it more obvious, that t is not a specific problem and give developers
> more hints for their work. Thank you.

No, my bug reports can be optimized. And it would be nice to have proper description of all the (relevant) steps required in detail. However it's a hard and time consuming business. There mostly something lacking.

1. Create a new document with text over two pages in one paragraph
-> Check (note: the attached document has multiple paragraphs?)

2. Insert an image => Change anchor to "as character"
-> Insert an image? Random image? Specific size? Into the same document? Other document? Cursor positioned where?
3. Copy that image put cursor somewhere at the end of page one and paste image => image is pasted on page 2 and there is some blank area on page 1
-> Somewhere at the 'end', no repro.
4. Undo 

A reduced version of the 'bug'. Also illustrating the 'how' specific the problem can be.
1. open the attached file
2. Copy the cat from page 2
3. Paste it after the red marking 
4. Undo (everything ok)
---
5. Reload file (only to be sure previous stuff didn't make things different)
6. Copy the cat from page 2
7. Paste it after the yellow marking
8. Undo (broken)

Follow-up
9. Save as..
10. File Reload
11. Everything OK
Comment 7 QA Administrators 2022-05-01 03:38:43 UTC Comment hidden (obsolete)
Comment 8 Dieter 2022-05-08 05:01:19 UTC
(In reply to Dieter from comment #5)

> Steps to reproduce:
> 
> 1. Create a new document with text over two pages in one paragraph
> 2. Insert an image => Change anchor to "as character"
> 3. Copy that image put cursor somewhere at the end of page one and paste
> image => image is pasted on page 2 and there is some blank area on page 1

No blank area with

Version: 7.3.3.2 (x64) / LibreOffice Community
Build ID: d1d0ea68f081ee2800a922cac8f79445e4603348
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

=> WORKSFORME
Comment 9 Telesto 2022-05-08 18:28:53 UTC
Created attachment 180004 [details]
Example file (variant 2)

1. Open attachment 159682 [details]
2. Copy the cat at page 2
3. Place cursor at yellow highlighted word (before after/doesn't matter)
4. Paste
5. CTRL+Z
6. Save
7. File -> Reload

-- Variant 2
1. Open the attached file
2. Select the image 
3. Press delete -> Page flow still split across pages
4. Save
5. File -> reload
Comment 10 Buovjaga 2023-01-09 10:41:24 UTC
(In reply to Telesto from comment #9)
> Created attachment 180004 [details]
> Example file (variant 2)
> 
> -- Variant 2
> 1. Open the attached file
> 2. Select the image 
> 3. Press delete -> Page flow still split across pages
> 4. Save
> 5. File -> reload

Reproduced, also with 3.5.0

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 8ae84bb5566e12df64236a116b9d1889d6f5f052
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded Jumbo
Built on 9 January 2023