]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #1388: correct conversion of image format
authorasl <asl@opencascade.com>
Wed, 8 Nov 2017 14:13:02 +0000 (17:13 +0300)
committerasl <asl@opencascade.com>
Wed, 8 Nov 2017 14:13:02 +0000 (17:13 +0300)
src/HYDROGUI/HYDROGUI_Tool.cxx

index af92511763d2b47ad114139193fead1db1e44637..cf7f4f36325a408998104bf647fa83a929a57eff 100644 (file)
@@ -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