From adf7367a27e45c04ecd2060f981aa547e493c3ec Mon Sep 17 00:00:00 2001 From: asl Date: Wed, 8 Nov 2017 17:13:02 +0300 Subject: [PATCH] refs #1388: correct conversion of image format --- src/HYDROGUI/HYDROGUI_Tool.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HYDROGUI/HYDROGUI_Tool.cxx b/src/HYDROGUI/HYDROGUI_Tool.cxx index af925117..cf7f4f36 100644 --- a/src/HYDROGUI/HYDROGUI_Tool.cxx +++ b/src/HYDROGUI/HYDROGUI_Tool.cxx @@ -315,8 +315,8 @@ Handle(Image_PixMap) HYDROGUI_Tool::Pixmap( const QImage& theImage ) Image_PixMap::ImgFormat aFormat; if ( anImage.hasAlphaChannel() ) { - if ( anImage.format() != QImage::Format_ARGB32 ) - anImage = anImage.convertToFormat( QImage::Format_ARGB32 ); + if ( anImage.format() != QImage::Format_RGBA8888 ) + anImage = anImage.convertToFormat( QImage::Format_RGBA8888 ); aFormat = Image_PixMap::ImgRGBA; } else -- 2.39.2