Salome HOME
Bos #24226, pb #3: Clipping faces texture is lost.
authorjfa <jfa@opencascade.com>
Tue, 4 May 2021 13:41:10 +0000 (16:41 +0300)
committerjfa <jfa@opencascade.com>
Tue, 4 May 2021 13:41:10 +0000 (16:41 +0300)
src/OCCViewer/OCCViewer_Utilities.cxx

index d57f3378577d0afe8c7bd69c1e84d18c0b59433f..506b9dc15f0e5e678cfd941d66046d07cf2c34ce 100644 (file)
@@ -43,7 +43,9 @@ Handle(Image_PixMap) OCCViewer_Utilities::imageToPixmap( const QImage& anImage )
   Handle(Image_PixMap) aPixmap = new Image_PixMap();
   if ( !anImage.isNull() ) {
     aPixmap->InitTrash( Image_PixMap::ImgBGRA, anImage.width(), anImage.height() );
+#if OCC_VERSION_LARGE < 0x07050000
     aPixmap->SetTopDown( Standard_True );
+#endif
 
     const uchar* aImageBytes = anImage.bits();