fix second part for transparency check

This commit is contained in:
defnax 2023-09-11 21:54:54 +02:00
parent 43afcf3f98
commit d5088caac6

View File

@ -801,7 +801,10 @@ void CreateGxsChannelMsg::sendMessage(const std::string &subject, const std::str
QBuffer buffer(&ba);
RsGxsImage image;
bool has_transparency = ImageUtil::hasAlphaContent(picture.toImage());
QPixmap pixmap;
pixmap = preview_W->getCroppedScaledPicture();
QImage qimg = pixmap.toImage();
bool has_transparency = ImageUtil::hasAlphaContent(qimg);
if(!picture.isNull())
{