From 188271a5d0a60909028347d44b861afe366e0f16 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Mon, 28 Jan 2019 21:05:29 +0100 Subject: [PATCH] xcf: initialize layer mode https://gitlab.gnome.org/GNOME/gimp/raw/master/devel-docs/xcf.txt When reading old XCF files that lack this property, assume mode==0. --- 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 3400660..7fb41ac 100644 --- a/src/imageformats/xcf.cpp +++ b/src/imageformats/xcf.cpp @@ -97,7 +97,7 @@ private: quint32 show_mask; //!< Show the layer mask rather than the image? qint32 x_offset; //!< x offset of the layer relative to the image qint32 y_offset; //!< y offset of the layer relative to the image - quint32 mode; //!< Combining mode of layer (LayerModeEffects) + quint32 mode = 0; //!< Combining mode of layer (LayerModeEffects) quint32 tattoo; //!< (unique identifier?) //! As each tile is read from the file, it is buffered here.