]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
RNV: Porting to DEV version of OCCT.
authormnt <mnt@opencascade.com>
Tue, 11 Jul 2017 09:00:30 +0000 (12:00 +0300)
committermnt <mnt@opencascade.com>
Tue, 11 Jul 2017 09:00:30 +0000 (12:00 +0300)
src/OCCViewer/OCCViewer_ViewWindow.cxx

index de787bc3a2a0973190a30f62dc495579d796fe28..0be9a6da8060fb22b39b49951ca55b012d813726 100644 (file)
@@ -2285,7 +2285,11 @@ QImage OCCViewer_ViewWindow::dumpView()
   QImage anImage( aWidth, aHeight, QImage::Format_ARGB32 );
   for ( int i = 0; i < aWidth; i++ ) {
     for ( int j = 0; j < aHeight; j++ ) {
-      Quantity_Color pixel = aPix.PixelColor( i, j );
+#if OCC_VERSION_LARGE > 0x07010001
+      Quantity_Color pixel = aPix.PixelColor( i, j ).GetRGB();
+#else
+      Quantity_Color pixel = aPix.PixelColor( i, j ).RGB();
+#endif
       QColor color = QColor::fromRgbF( pixel.Red(), pixel.Green(), pixel.Blue() );
       anImage.setPixelColor( i, j, color );
     }