Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarImage.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-11-24 20:34:41 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2023-11-24 20:34:41 +1100
commit81198f091c4f08be313840ee9699576e672656eb (patch)
tree2bdd0fef3e8af5d9a78505b5979bc0532b4008fd /source/core/StarImage.cpp
parenteb4652b5f6ab303009b4b7a5e7d771e4190695ac (diff)
fix Image not resetting properly after being moved from
Diffstat (limited to 'source/core/StarImage.cpp')
-rw-r--r--source/core/StarImage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/StarImage.cpp b/source/core/StarImage.cpp
index 33c37a4..ac1fb9a 100644
--- a/source/core/StarImage.cpp
+++ b/source/core/StarImage.cpp
@@ -244,7 +244,7 @@ void Image::reset(unsigned width, unsigned height, Maybe<PixelFormat> pf) {
if (!pf)
pf = m_pixelFormat;
- if (m_width == width && m_height == height && m_pixelFormat == *pf)
+ if (m_data && m_width == width && m_height == height && m_pixelFormat == *pf)
return;
size_t imageSize = width * height * Star::bytesPerPixel(*pf);