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

            Bug ID: 151372
           Summary: Images disappear after saving
           Product: LibreOffice
           Version: 7.4.1.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
In a odt document, if i change anything then save, all pictures dissapear.
Exemple: I open this document
(https://www.mediafire.com/file/f5xdw27y2vs8mrn/TPE_-_vente.odt/file) . As you
can see, there is a picture and some text. Now modify or add any text, then
save. Re-open, the picture is gone.
I have at least 5 documents behaving like this.

Steps to Reproduce:
1. download this ODT:
https://www.mediafire.com/file/f5xdw27y2vs8mrn/TPE_-_vente.odt/file
2. change or add any text
3. Save
4. open the document
5. the picture is gone

Actual Results:
The pictures disappear 

Expected Results:
the picture have to be visible


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Sorry the bad english.

I investigated the problem, in the content.xml file, this part before saving:

<text:p text:style-name="P1">
    <draw:frame draw:style-name="fr3" draw:name="Image 6"
text:anchor-type="paragraph" svg:x="6.585cm" svg:y="0.106cm"
                svg:width="5.292cm" style:rel-width="scale"
svg:height="5.292cm" style:rel-height="scale"
                draw:z-index="4">
        <draw:image
xlink:href="Pictures/10000000000000C8000000C83BDED6B6D0C4F2D4.png"
xlink:type="simple"
                    xlink:show="embed" xlink:actuate="onLoad"
draw:mime-type="image/png"/>
    </draw:frame>
</text:p>


After saving:

<text:p text:style-name="P1">
    <draw:frame draw:style-name="fr3" draw:name="Image 6"
text:anchor-type="paragraph" svg:x="6.585cm" svg:y="0.106cm"
                svg:width="0cm" style:rel-width="scale" svg:height="0cm"
style:rel-height="scale"
                draw:z-index="4">
        <draw:image
xlink:href="Pictures/10000000000000C8000000C83BDED6B6D0C4F2D4.png"
xlink:type="simple"
                    xlink:show="embed" xlink:actuate="onLoad"
draw:mime-type="image/png"/>
    </draw:frame>
</text:p>

As you can see, svg:height and svg:width are clearly messed up

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

Reply via email to