Increase the high-end GCC version in qt-ci (#3488)

This commit is contained in:
Ferenc Géczi
2025-06-24 18:19:03 +02:00
committed by GitHub
parent aaaf55a549
commit 8a5d5a5287
2 changed files with 10 additions and 6 deletions

View File

@@ -88,11 +88,15 @@ public:
return;
}
Image newImage(size_);
if (valid()) {
if (!size_.isEmpty() && valid()) {
assert(bytes()); // gcc12 bug
newImage.fill(0);
copy(*this,
newImage,
{0, 0},
{0, 0},
{std::min(size.width, size_.width), std::min(size.height, size_.height)});
}
copy(*this, newImage, {0, 0}, {0, 0}, {std::min(size.width, size_.width), std::min(size.height, size_.height)});
operator=(std::move(newImage));
}