-#define CPPUNIT_ASSERT_VIEW( theCase ) \
- { \
- qApp->processEvents(); \
- QImage im = aViewPort->dumpView(); \
- CPPUNIT_ASSERT_IMAGES2( &im, theCase ); \
- }
+#define CPPUNIT_ASSERT_VIEW( theCase ) \
+ { \
+ qApp->processEvents(); \
+ QImage im = aViewPort->dumpView(); \
+ const bool SWAP_RGB_ORDER = true; \
+ if( SWAP_RGB_ORDER ) \
+ { \
+ /* A temporary patch for bug in SALOME/OCC dump; \
+ the result image contains swapped RGB colors */ \
+ im = im.rgbSwapped(); \
+ } \
+ CPPUNIT_ASSERT_IMAGES2( &im, theCase ); \
+ } \
void test_GraphicsView::test_wheel_zoom()
{