Fixed render of scene from photo editor for grayscaled images.
Fixed #23889.
This commit is contained in:
parent
7aa3956792
commit
1ec2ecac11
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue