[Libreoffice-bugs] [Bug 142858] New: FILESAVE Own shadow is not written, if MSO 'reflection' effect exists

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Jun 14 21:13:34 UTC 2021


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

            Bug ID: 142858
           Summary: FILESAVE Own shadow is not written, if MSO
                    'reflection' effect exists
           Product: LibreOffice
           Version: 7.2.0.0 alpha1+ Master
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: rb.henschel at t-online.de

Created attachment 172877
  --> https://bugs.documentfoundation.org/attachment.cgi?id=172877&action=edit
Document to use as start for reproducing the bug

Open attached document in Word, to see that it has a shape with effect
'Reflection'. Close.

Open document in LibreOffice Daily.
Select the shape and add a shadow: Direction Top, 0.5" distance, Color Black,
4pt Blur, 60% Transparency. Other shadow settings produce the error too, but so
the shadow is good visible.

Save the document as new docx document.
Open the saved document in LibreOffice or Word.

Error: There is not shadow.
Expected: Shadow exists.

The problem is in method DrawingML::WriteShapeEffects in
oox/source/export/drawingml.cxx.

If aEffects.hasElements() is true - which is the case here, because it contains
the effect 'Reflection', then the flow goes to 'else'. There it starts
immediately with a loop over aOuterShdwProps. But that is empty, because the
InteropGrabBag does not have a shadow, but shadow was newly set in LibreOffice.

How to export an own shadow can be seen in #4243-#4266.

It is an error in the flow logic.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210614/347203dd/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list