From 311296dd194975d27936b609b70772069f075513 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Mon, 28 Jan 2019 20:31:18 +0100 Subject: [PATCH] xcf: initialize layer opacity https://gitlab.gnome.org/GNOME/gimp/raw/master/devel-docs/xcf.txt When reading old XCF files that lack this property, full opacity should be assumed. --- src/imageformats/xcf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imageformats/xcf.cpp b/src/imageformats/xcf.cpp index f55ced3..3400660 100644 --- a/src/imageformats/xcf.cpp +++ b/src/imageformats/xcf.cpp @@ -88,7 +88,7 @@ private: } mask_channel; bool active; //!< Is this layer the active layer? - quint32 opacity; //!< The opacity of the layer + quint32 opacity = 255; //!< The opacity of the layer quint32 visible = 1; //!< Is the layer visible? quint32 linked; //!< Is this layer linked (geometrically) quint32 preserve_transparency; //!< Preserve alpha when drawing on layer?