From f61d64e0e5005769253acfecf854a52cae9653c3 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Mon, 28 Jan 2019 21:51:10 +0100 Subject: [PATCH] xcf: Initialize x/y_offset https://gitlab.gnome.org/GNOME/gimp/raw/master/devel-docs/xcf.txt When reading old XCF files that lack this property, assume (0,0). --- src/imageformats/xcf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/imageformats/xcf.cpp b/src/imageformats/xcf.cpp index 7fb41ac..dea3011 100644 --- a/src/imageformats/xcf.cpp +++ b/src/imageformats/xcf.cpp @@ -95,8 +95,8 @@ private: quint32 apply_mask; //!< Apply the layer mask? quint32 edit_mask; //!< Is the layer mask the being edited? 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 + qint32 x_offset = 0; //!< x offset of the layer relative to the image + qint32 y_offset = 0; //!< y offset of the layer relative to the image quint32 mode = 0; //!< Combining mode of layer (LayerModeEffects) quint32 tattoo; //!< (unique identifier?)