Download it now!
Bug 132279 - Deleting first paragraph of a document deletes anchored to object
Summary: Deleting first paragraph of a document deletes anchored to object
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 Writer-Images
  Show dependency treegraph
 
Reported: 2020-04-20 15:29 UTC by Telesto
Modified: 2020-06-09 19:21 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (12.65 KB, application/vnd.oasis.opendocument.text)
2020-04-20 15:30 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-04-20 15:29:53 UTC
Description:
Deleting empty paragraph deletes anchored to object

Steps to Reproduce:
1. Open the attached file
2. Delete second last paragraph -> Graph disappears

Actual Results:
Graph disappears

Expected Results:
Anchor is invisible, so probably not. Word does never delete the object.. It always moves the anchor up


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-20 15:30:05 UTC
Created attachment 159766 [details]
Example file
Comment 2 Telesto 2020-04-20 16:34:26 UTC
Repro with
4.4.7.2

no repro with
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 3 Telesto 2020-04-20 16:35:58 UTC
No repro with
Versie: 4.2.0.4 
Build ID: 05dceb5d363845f2cf968344d7adab8dcfb2ba71
Comment 4 Dieter 2020-04-22 09:01:33 UTC
This happens only, if image is anchored to character in the first paragraph of a document. If you delete the first paragraph in a document, anchor can't move up (as it dies normally in LO)

=> NEW (but I couldn't check regression)

Steps to reproduce
1. Open a new document
2. Add 4 empty paragraphs
3. Put cursor into third paragraph and add an image
4. Delete third paragraph => anchor jumps to second paragraph
5. Delete second paragraph => anchor jumps to forst paragraph
6. Delete first paragraph => Anchor and image disappears

Expected result: Not sure, perhaps change anchor to "To Page" (Don't know, if this is possible)
Comment 5 Telesto 2020-04-22 09:30:52 UTC
(In reply to Dieter from comment #4)
> Expected result: Not sure, perhaps change anchor to "To Page" (Don't know,
> if this is possible)

Anchor to character is the default (for images at least). See whole discussion bug 87720

STR where not precise enough, I guess
Steps to Reproduce:
1. Open the attached file
2. Delete last paragraph with backspace
Comment 6 Telesto 2020-04-24 21:25:35 UTC
No repro with
Version: 4.3.0.4
Build ID: 62ad5818884a2fc2e5780dd45466868d41009ec0
Comment 7 Buovjaga 2020-06-09 18:45:20 UTC
(In reply to Telesto from comment #5)
> STR where not precise enough, I guess
> Steps to Reproduce:
> 1. Open the attached file
> 2. Delete last paragraph with backspace

I am deeply confused. I repro with oldest of Linux 44max, 43max, 42max, 41max, 43all. In some of them the graph is invisible (blank?), but can be selected. It clearly disappears with the backspace however.

Telesto: maybe you can bibisect with the Windows 4.4 repo.
Comment 8 Telesto 2020-06-09 19:21:34 UTC
(In reply to Buovjaga from comment #7)
> I am deeply confused. I repro with oldest of Linux 44max, 43max, 42max,
> 41max, 43all. In some of them the graph is invisible (blank?), but can be
> selected. It clearly disappears with the backspace however.

Hmm, not gonna try. I'm assuming a inherent situation.. the regular case for anchoring to character issues..