Salome HOME
Bos #24226, pb #3: Clipping faces texture is lost.
[modules/gui.git] / 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();