From: asl Date: Wed, 8 Nov 2017 14:13:02 +0000 (+0300) Subject: refs #1388: correct conversion of image format X-Git-Tag: v2.1~51^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=adf7367a27e45c04ecd2060f981aa547e493c3ec;p=modules%2Fhydro.git refs #1388: correct conversion of image format --- 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