From 4c799c3df986f8c3c86e32cac54ba85a4fcd9593 Mon Sep 17 00:00:00 2001 From: mnt Date: Tue, 11 Jul 2017 12:00:30 +0300 Subject: [PATCH] RNV: Porting to DEV version of OCCT. --- src/OCCViewer/OCCViewer_ViewWindow.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ); } -- 2.39.2