mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-29 00:27:27 -04:00
fix second part for transparency check
This commit is contained in:
parent
43afcf3f98
commit
d5088caac6
1 changed files with 4 additions and 1 deletions
|
@ -801,7 +801,10 @@ void CreateGxsChannelMsg::sendMessage(const std::string &subject, const std::str
|
||||||
QBuffer buffer(&ba);
|
QBuffer buffer(&ba);
|
||||||
|
|
||||||
RsGxsImage image;
|
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())
|
if(!picture.isNull())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue