Fixed render of scene from photo editor for grayscaled images.

Fixed #23889.
This commit is contained in:
23rd 2022-01-13 04:20:15 +03:00
parent 7aa3956792
commit 1ec2ecac11
1 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,11 @@ QImage ImageModified(QImage image, const PhotoModifications &mods) {
return image;
}
if (mods.paint) {
if (image.format() != QImage::Format_ARGB32_Premultiplied) {
image = image.convertToFormat(
QImage::Format_ARGB32_Premultiplied);
}
Painter p(&image);
PainterHighQualityEnabler hq(p);