From 09abfd80849fdf3363d17d09256d8c77ed357768 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sun, 27 Jan 2019 13:03:51 +0100 Subject: [PATCH] xcf: Initialize layer visible property https://gitlab.gnome.org/GNOME/gimp/blob/master/devel-docs/xcf.txt says When reading old XCF files that lack this property, assume that layers are visible --- 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 25f195c..2c9278d 100644 --- a/src/imageformats/xcf.cpp +++ b/src/imageformats/xcf.cpp @@ -87,7 +87,7 @@ private: bool active; //!< Is this layer the active layer? quint32 opacity; //!< The opacity of the layer - quint32 visible; //!< Is the layer visible? + quint32 visible = 1; //!< Is the layer visible? quint32 linked; //!< Is this layer linked (geometrically) quint32 preserve_transparency; //!< Preserve alpha when drawing on layer? quint32 apply_mask; //!< Apply the layer mask?