From 8cc565682c662e3496d257432cc67ded2bf9531a Mon Sep 17 00:00:00 2001 From: Delio Vicini Date: Mon, 25 Sep 2023 16:49:31 +0200 Subject: [PATCH] Fix missing field assignment in Bitmap copy constructor --- src/core/bitmap.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/bitmap.cpp b/src/core/bitmap.cpp index 81d1649dc..49ec934a8 100644 --- a/src/core/bitmap.cpp +++ b/src/core/bitmap.cpp @@ -89,6 +89,7 @@ Bitmap::Bitmap(const Bitmap &bitmap) m_size(bitmap.m_size), m_struct(new Struct(*bitmap.m_struct)), m_srgb_gamma(bitmap.m_srgb_gamma), + m_premultiplied_alpha(bitmap.m_premultiplied_alpha), m_owns_data(true) { size_t size = buffer_size(); m_data = std::unique_ptr(new uint8_t[size]); @@ -103,6 +104,7 @@ Bitmap::Bitmap(Bitmap &&bitmap) m_size(bitmap.m_size), m_struct(std::move(bitmap.m_struct)), m_srgb_gamma(bitmap.m_srgb_gamma), + m_premultiplied_alpha(bitmap.m_premultiplied_alpha), m_owns_data(bitmap.m_owns_data) { }