Skip to content

Commit

Permalink
Fix missing field assignment in Bitmap copy constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
dvicini authored and njroussel committed Sep 28, 2023
1 parent 0c23b01 commit 8cc5656
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/bitmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint8_t[]>(new uint8_t[size]);
Expand All @@ -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) {
}

Expand Down

0 comments on commit 8cc5656

Please sign in to comment.