Bug 154252 - object anchored to frame inside a shape with text box is lost on reload (comment 3)
Summary: object anchored to frame inside a shape with text box is lost on reload (comm...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.0.3 release
Hardware: x86-64 (AMD64) All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: dataLoss
Depends on:
Blocks: Anchor-and-Text-Wrap Shape-Textbox
  Show dependency treegraph
 
Reported: 2023-03-18 10:11 UTC by kevin
Modified: 2024-01-08 22:54 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
sample ODT (14.23 KB, application/vnd.oasis.opendocument.text)
2024-01-08 22:51 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kevin 2023-03-18 10:11:36 UTC
Description:
En utilisant le traitement de texte writer, j'ai inséré une forme de base dans mon document et ajouté une zone de texte en faisant un clic droit. Cependant, comme le texte reste centré dans le cadre, alors j'ai créé une nouvelle zone de texte à l'intérieur du cadre en ancrant la zone de texte au cadre. J'ai également ajouté une image et ancré cette dernière au cadre. Après avoir terminé mon travail et enregistré mon document, j'ai constaté que les cadres étaient toujours visibles mais les zones de texte ajouté et ancré et les images ne s'affichaient plus. Malheureusement, il semble que le travail soit perdu.

-----

Using the word processor writer, I inserted a basic shape into my document and added a text box by right clicking. However, since the text stays centered in the frame, then I created a new text box inside the frame by anchoring the text box to the frame. I also added an image and anchored the image to the frame. After I finished my work and saved my document, I found that the frames were still visible but the added and anchored text boxes and images were no longer showing. Unfortunately, it looks like the work is lost.

Steps to Reproduce:
1. Ouvrir writer
2. Inséré une forme/forme base/rectangle arrondi
3. appuyé sur "échap" pour sélectionner le cadre/clique droit/ajouter une zone de texte
4. appuyé sur échap pour pouvoir inséré une zone de texte : dessiner la zone de texte a l’intérieur du cadre. Écrire puis clique droit/ancre/au cadre
5. Enregistrer le travail
6. Ouvrir le document
7. Le cadre est bien visible mais le texte est perdu !

Si des images sont ajouté de la même manière, le problème reste le même. 

Actual Results:
Le cadre est bien visible mais le texte est perdu ! Et si des images sont ajouté de la même manière, le problème reste le même. 

The frame is visible but the text is lost! If images are added in the same way, the problem remains the same. 

Expected Results:
Save the work

----

Enregistrer le travail


Reproducible: Always


User Profile Reset: No

Additional Info:
Aucune autre information requise.
Comment 1 V Stuart Foote 2023-03-18 17:04:11 UTC
I can not reproduce. Activating the "Text box" frame within the draw Shape and entering text into the text box is not affected by applying an anchor to the shape.

The text box's frame is already anchored to the draw shape. And the draw shape is already anchored as paragraph.

Removing the frame will delete any text entered on the shape before the text box frame was activated--immediate 'undo' will even show the frame (only way to do so).  

But the text box frame and its text is saved withing the ODF and is visible when the document is reopened.

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a179f6c91692076e7e17babf4890638caa398384
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 2 Aaron 2023-08-17 00:04:10 UTC
Thank you for reporting the bug. I can not reproduce the bug in

Version: 7.5.5.2 (X86_64) / LibreOffice Community
Build ID: ca8fe7424262805f223b9a2334bc7181abbcbf5e
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-AU (fr_FR); UI: en-US
Calc: threaded
Comment 3 Stéphane Guillou (stragu) 2024-01-08 22:51:59 UTC
Created attachment 191811 [details]
sample ODT

I reproduce, but let me reformulate the steps:
(with attachment, start at step 4)

1. Open Writer
2. Insert a shape, right-click on it, "Add text box": the frame of the text box can be seen
3. Insert another object, e.g. another shape, and trace it inside the first shape: it will automatically be anchored "to paragraph"
4. Anchor the second object "to frame"
5. Save as ODT
6. Reload

Result: the second object is lost.

Reproduced in recent trunk build:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e83c7ec2f4d801365235bf56d7cc8cf31ef4a00e
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Also in 6.0.0.3.