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: 2019-11-11 15:42 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

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