Bug 132225 - Page flow isn't updated after paste image and Undo (with image anchored as character)
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 normal
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: 2020-04-30 19:05 UTC (History)
1 user (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

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