diff options
author | Luke Deller <luke@deller.id.au> | 2019-10-31 01:36:22 +1100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-10-31 08:51:49 +0100 |
commit | ef3dabd1f814d1b005efc5d5144978c1d26a8e73 (patch) | |
tree | 12e670ed7d28c2cd054aa3a3af48be42f4df468f /sc/source/ui/docshell/docsh6.cxx | |
parent | 0dd56a4a745266dcf88d43150ef1d798619ab522 (diff) |
Fix IsTransparent() for unloaded graphics
Fix Graphic::IsAlpha() and Graphic::IsTransparent() for unloaded
graphics. This fixes tdf#118036.
GraphicDescriptor::Detect(true) is currently used to read the image size
from the header of images which are not being fully loaded yet. This
change extends GraphicDescriptor to also report whether the image
supports transparency or alpha, implemented only for PNG format so far.
Change-Id: I1753c0d11491f1dc518e23da8d7b3842945770cb
Reviewed-on: https://gerrit.libreoffice.org/81785
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sc/source/ui/docshell/docsh6.cxx')
0 files changed, 0 insertions, 0 deletions