Bug 128471 - If shapes are anchored "to frame" and then the anchoring of the frame is changed, then the Shapes become hidden
Summary: If shapes are anchored "to frame" and then the anchoring of the frame is chan...
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 Frame Shapes
  Show dependency treegraph
 
Reported: 2019-10-29 22:29 UTC by sdc.blanco
Modified: 2023-12-29 15:24 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
shape anchored to frame for testing (10.07 KB, application/vnd.oasis.opendocument.text)
2023-12-29 15:24 UTC, sdc.blanco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sdc.blanco 2019-10-29 22:29:57 UTC
Description:
If a shape is anchored to a frame, then changing the anchoring of the frame will result in the shape becoming hidden (with no obvious way to make it visible again). 



Steps to Reproduce:
Part 1

1.  Open New Document
2.  Insert a Frame
3.  Insert Shape(s) (e.g., Rectange, Textbox) in the Frame
4.  Change anchor of the Shape to ‟To Frame” 
5.  Change the anchor of the Frame  (does not matter which, just that it is a change).

Part 2.

1. Copy the Frame (with the hidden Shape(s))
2. Paste the Frame

Part 3.

1.  Change the anchor of this new copied frame (to anything else)




Actual Results:
Part 1:  The shape(s) become hidden (with no obvious way to get them back.)
NB.  The Navigator shows shows the Shape(s) under Drawing objects (but grayed out).

Part 2:  The hidden shapes are back.

Part 3:  The shapes are hidden again.

Expected Results:
Shapes that are anchored to a frame should remain visible when the anchoring of the frame is changed.


Reproducible: Always


User Profile Reset: No



Additional Info:
1. Only happens with Shapes.  Did not happen with Images, Frames, OLE Objects. 
2. Only happens when Shapes are anchored to frame.  Other anchors of Shapes are not affected by changing the anchor of the Frame.
Comment 1 Dieter 2019-10-30 08:31:53 UTC
I confirm it with

Version: 6.4.0.0.alpha1 (x64)
Build ID: cc57df8f942f239d29cb575ea5a7cb01405db787
CPU threads: 4; OS: Windows 10.0 Build 18362; UI render: GL; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-US
Calc: threaded

Additional informations
- If you press undo after step 5, shape is again visible and it is possibel to change anchor of the frame (shape remains visible)
- If you doesn't change anchor of shape "To Frame" you can change anchor of frame without loosing the shape
Comment 2 sdc.blanco 2019-10-30 10:22:42 UTC
(In reply to Dieter Praas from comment #1)

> - If you press undo after step 5, shape is again visible and it is possibel
> to change anchor of the frame (shape remains visible)

I had to undo twice to get the shape visible again -- but then it was anchored "to paragraph".  (It did not reappear after doing undo once).  Are you sure that after "undo" the shape was still anchored "to frame"?  If so, then this would appear to be a difference between 6.4.0.0.alpha1 (x64) and 6.3.3.1.


> - If you doesn't change anchor of shape "To Frame" you can change anchor of
> frame without loosing the shape

For sake of clarity, I think this is the same as point #2 of additional information in the initial report.
Comment 3 Xisco Faulí 2019-11-11 15:42:36 UTC
Also reproduced in

Version: 5.2.0.0.alpha1+
Build ID: 5b168b3fa568e48e795234dc5fa454bf24c9805e
CPU Threads: 4; OS Version: Linux 4.15; UI Render: default; 
Locale: ca-ES (ca_ES.UTF-8

Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 4 sdc.blanco 2020-09-29 12:09:58 UTC
reproduced

Version: 7.1.0.0.alpha0+ (x64)
Build ID: 3c6177be2705303044e3de262689d593f3d0f282
CPU threads: 8; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: da-DK (en_DK); UI: en-US
Calc: threaded
Comment 5 QA Administrators 2023-12-29 03:11:51 UTC Comment hidden (obsolete)
Comment 6 sdc.blanco 2023-12-29 15:24:58 UTC
Created attachment 191633 [details]
shape anchored to frame for testing

repro everything in OP:

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

attached test file has a frame with a shape anchored to the frame