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;
|
return image;
|
||||||
}
|
}
|
||||||
if (mods.paint) {
|
if (mods.paint) {
|
||||||
|
if (image.format() != QImage::Format_ARGB32_Premultiplied) {
|
||||||
|
image = image.convertToFormat(
|
||||||
|
QImage::Format_ARGB32_Premultiplied);
|
||||||
|
}
|
||||||
|
|
||||||
Painter p(&image);
|
Painter p(&image);
|
||||||
PainterHighQualityEnabler hq(p);
|
PainterHighQualityEnabler hq(p);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue