Fix possible crash in style::colorizeImage.

This commit is contained in:
John Preston 2023-12-22 14:40:24 -04:00
parent afe99d1e06
commit c5a616de35

View file

@ -106,6 +106,7 @@ void colorizeImage(
auto width = srcRect.width();
auto height = srcRect.height();
Assert(outResult->rect().contains(QRect(dstPoint, srcRect.size())));
outResult->detach();
auto pattern = anim::shifted(color);