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.
This commit is contained in:
Albert Astals Cid 2019-01-28 20:31:18 +01:00
parent d6ae11a691
commit 311296dd19

View File

@ -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?