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

Michael Stahl <mst...@redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |bisected
                 CC|                            |caol...@redhat.com
           See Also|                            |https://bugs.documentfounda
                   |                            |tion.org/show_bug.cgi?id=90
                   |                            |130
         Whiteboard|                            |odf

--- Comment #6 from Michael Stahl <mst...@redhat.com> ---

this changed with:

commit bc892b04144d82507ccd59953c9f4da357c2e7b4
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Apr 14 10:14:42 2015 +0100

    Related: tdf#90130 gradient transparency goes missing


but it's not clear to me that it's a bug, a stored document from 4.4.2.2
contains this:

  fo:background-color="transparent" style:background-transparency="100%"
draw:fill="bitmap" draw:fill-image-name="Sky"

the properties contain both old style:background-image and new draw:fill*:

      <style:graphic-properties style:vertical-pos="top"
style:vertical-rel="paragraph-content" style:horizontal-pos="center"
style:horizontal-rel="paragraph" fo:background-color="transparent"
style:background-transparency="100%" draw:fill="bitmap"
draw:fill-image-name="Sky" draw:fill-image-width="0cm"
draw:fill-image-height="0cm">
        <style:background-image
xlink:href="Pictures/100000000000005E0000005E47394922.png" xlink:type="simple"
xlink:actuate="onLoad" draw:opacity="100%"/>
      </style:graphic-properties>

... so reading that and setting it transparent looks like the right
thing to do, question is why does 4.4 store that transparency thing?

LO 4.3 (and OOo 3.3) writes something similar:

      <style:graphic-properties style:vertical-pos="top"
style:vertical-rel="paragraph-content" style:horizontal-pos="center"
style:horizontal-rel="paragraph" fo:background-color="transparent"
style:background-transparency="100%">
        <style:background-image
xlink:href="Pictures/10000000000000400000003C7A6ECFC1.jpg" xlink:type="simple"
xlink:actuate="onLoad" draw:opacity="100%"/>
      </style:graphic-properties>


... so the transparency is overridden by the draw:opacity="100%" on the image.

so it's possible that the harmless transparent attributes should not be written
by 4.4 since they're no longer harmless because of the new draw:fill
attributes.  or perhaps that commit was wrong after all?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to