summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorParis Oplopoios <paris.oplopoios@collabora.com>2023-06-10 21:33:39 +0300
committerXisco Fauli <xiscofauli@libreoffice.org>2023-06-13 23:20:31 +0200
commite691869486cd4ee4ee1dfb8f7a41440f7f6500fd (patch)
tree89fd2687642fec1d1b0f88f68afa05606cfae5c0 /include
parent1757415b4f1d81a3445c1cc9cd353ffb98d1ce22 (diff)
tdf#154168 Export no transparency PNGs correctly
When bTranslucent was false the function would simply return, causing a 0 byte png. Now we just remove the alpha channel. Change-Id: Ie2578185ac12fb38b6f1b674758e564721e3973f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152840 Tested-by: Jenkins Reviewed-by: Paris Oplopoios <parisoplop@gmail.com> (cherry picked from commit 7588c1f33cdaab58a6b84f4f4e75922c5d4a8a7f) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152886 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/bitmapex.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/vcl/bitmapex.hxx b/include/vcl/bitmapex.hxx
index 5838ef8d6e40..9d7a104264ef 100644
--- a/include/vcl/bitmapex.hxx
+++ b/include/vcl/bitmapex.hxx
@@ -56,6 +56,7 @@ public:
bool IsEmpty() const;
void SetEmpty();
void Clear();
+ void ClearAlpha();
void Draw( OutputDevice* pOutDev,
const Point& rDestPt ) const;