From: mnt Date: Tue, 11 Jul 2017 09:00:30 +0000 (+0300) Subject: RNV: Porting to DEV version of OCCT. X-Git-Tag: V8_4_0a1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4c799c3df986f8c3c86e32cac54ba85a4fcd9593;p=modules%2Fgui.git RNV: Porting to DEV version of OCCT. --- diff --git a/src/OCCViewer/OCCViewer_ViewWindow.cxx b/src/OCCViewer/OCCViewer_ViewWindow.cxx index de787bc3a..0be9a6da8 100644 --- a/src/OCCViewer/OCCViewer_ViewWindow.cxx +++ b/src/OCCViewer/OCCViewer_ViewWindow.cxx @@ -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 ); }