https://bugs.documentfoundation.org/show_bug.cgi?id=154827

            Bug ID: 154827
           Summary: Regression in 7.5.x: Graphics anchored in Writer as
                    character become anchored at paragraph when reopening
                    the document
           Product: LibreOffice
           Version: 7.5.2.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
In Writer 7.5.x in Linux, some graphics anchored as character become anchored
at paragraph when reopening the document.

This is observed in Linux (Ubuntu 22.04 and 22.10) and fully reproducible, but
not observed in Windows 10 20H2 (in a VM) nor in Mac OS X Monterey (in a VM).

The bug is also not present in LibreOffice 7.4.6.2, in all systems.


Steps to Reproduce:
1. Create a new Draw document and insert the SVG image eq1.svg in it

2. In Draw, select the image, then right click on it and make Convert / To
Curve. Then copy the image to clipboard (Ctrl-C)

3. Create a new Writer document, type the text 'Equation 1 ' and then paste the
image from clipboard (simple paste, Ctrl-V) after the text

4. In Writer, anchor the image as character (right click on the image, then
Anchor / As character)

5. In Draw again, insert the SVG image eq2.svg, then repeat step 2 on this
image 

6. In the opened Writer document, add a new line and type the text 'Equation 2
', then paste the second image after the text and anchor it as character like
in step 4

7. Save the Writer document where both images are anchored as character

8. Reopen the Writer document => now, the *second image* is anchored at
paragraph. The first image is still anchored as character


Actual Results:
After reopening the Writer document, the second image has lost its 'as
character' anchoring.

Expected Results:
The image anchoring must not change after saving and reopening a Writer
document.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Some observations:

1. The bug also appears if the SVG image is converted to contour or to polygon
instead of curve, but does not appear when the image is converted to metafile

2. When adding other SVG images and repeating the same process, the 'as
character' anchoring is lost for all images, except the first one

3. In Writer, using the Tools / Development Tools menu (for that tool, select
the second image, then click on Current Selection, then select the Properties
tab, then click on the @0 object), one can see that the Anchor property and the
AnchorType property are Null. These properties are well defined for the first
image.

LibreOffice:
Version: 7.5.2.2 (X86_64) / LibreOffice Community
Build ID: 53bb9681a964705cf672590721dbc85eb4d0c3a2
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Calc: CL threaded

System:
Ubuntu 22.04.2 LTS 64 bits

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to