From bff6142b4497bf0cd5b460bec6201d18e66983e3 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sun, 27 Jan 2019 13:07:37 +0100 Subject: [PATCH] xcf: initialize num_colors --- 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 2c9278d..cc247ec 100644 --- a/src/imageformats/xcf.cpp +++ b/src/imageformats/xcf.cpp @@ -133,7 +133,7 @@ private: float y_resolution; //!< y resolution in dots per inch qint32 tattoo; //!< (unique identifier?) quint32 unit; //!< Units of The GIMP (inch, mm, pica, etc...) - qint32 num_colors; //!< number of colors in an indexed image + qint32 num_colors = 0; //!< number of colors in an indexed image QVector palette; //!< indexed image color palette int num_layers; //!< number of layers