mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-23 16:30:06 -05:00
fix second part for transparency check
This commit is contained in:
parent
43afcf3f98
commit
d5088caac6
@ -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())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user