Bug 138153 - Image off page after changing anchor to 'to character' inside a caption frame (and undo doesn't solve it)
Summary: Image off page after changing anchor to 'to character' inside a caption frame...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: preBibisect, regression
Depends on:
Blocks: Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2020-11-12 09:13 UTC by Telesto
Modified: 2023-12-30 16:46 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
simpler document with critical image and caption frame (250.03 KB, application/vnd.oasis.opendocument.text)
2023-12-30 12:18 UTC, sdc.blanco
Details
Simplified bug doc (242.41 KB, application/vnd.oasis.opendocument.text)
2023-12-30 16:46 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-11-12 09:13:43 UTC
Description:
Image off page after changing anchor to 'to character' inside a caption frame

Steps to Reproduce:
1. Open attachment 165869 [details]
2. Select the image on the second page (so image inside frame 1)
3. Change anchor to 'to character'

Actual Results:
Document scrolls to bottom and image 'gone'

Expected Results:
Not jumping do total different page/ losing image


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.0.0.alpha1+ (x64)
Build ID: 5a96093f0ecee53432bdf35f247edd6deb501baf
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 1 Telesto 2020-11-12 09:15:35 UTC
Also in
LibreOffice 3.5.7.2 
Build ID: 3215f89-f603614-ab984f2-7348103-1225a5b
Comment 2 Telesto 2020-11-12 09:17:35 UTC
Still OK with
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 3 Telesto 2020-11-12 09:22:13 UTC
@Xisco
Likely overestimating the problem (not that many complains, but kind of easy to reproduce)
Comment 4 Buovjaga 2020-11-16 10:43:11 UTC
Repro

Arch Linux 64-bit
Version: 7.1.0.0.alpha1+
Build ID: bd3aeaefff5e7bdef10c4702d1f388083557614e
CPU threads: 8; OS: Linux 5.9; UI render: default; VCL: kf5
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 15 November 2020
Comment 5 QA Administrators 2023-12-29 03:11:53 UTC Comment hidden (obsolete)
Comment 6 sdc.blanco 2023-12-29 15:46:42 UTC
repro

Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 0ddd9f7e055a0c1ecb120de3e40c3fdb8373e9dc
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: da-DK (da_DK); UI: en-US
Calc: CL threaded


The image in question is Image 15 in Navigator.  It remains in Navigator, but "goto" and "edit" do not appear to give access.
Comment 7 sdc.blanco 2023-12-30 12:18:20 UTC
Created attachment 191647 [details]
simpler document with critical image and caption frame

@Telesto, is it possible that this ticket is a false alarm?

Reasons:

1.  I tried to prepare a simpler test file, starting from scratch with an image in a frame, like your case and could not reproduce the problem.

2. Copied image from original attachment to a new document, added caption (and therefore frame), but could not reproduce the problem.

3. Copied frame (on the second page of original attachment) to new document.  
(see new attachment here)
(and repro with this new document), but then copy and paste the image into the document, add a caption frame, and cannot repro.

I tried to look at the xml, and could not see an obvious problem, but I am not an expert in reading/interpreting XML.

Anyway -- I suspect this "bug" (?) is because of some defect in the actual test case, and not in LO.  If you cannot make a new reproducible case, maybe you should close this ticket as INVALID?
Comment 8 Telesto 2023-12-30 16:46:25 UTC
Created attachment 191653 [details]
Simplified bug doc

(In reply to sdc.blanco from comment #7)
> Created attachment 191647 [details]
> simpler document with critical image and caption frame

Thanks for looking into it :-). A smaller example surely appreciated. I'm able to reproduce this with your simplified version, with a small modification: a page break before the image.