else
anActualImage = viewWindow()->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
+ anActualImage = anActualImage.rgbSwapped();
+ }
+
+
if( theCase )
myKey = theCase;
from HYDROPy import *
-from PyQt4.QtCore import *
-from PyQt4.QtGui import *
+from PyQt5.QtCore import *
+from PyQt5.QtGui import *
hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
-#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()
{