Salome HOME
debug of tests [colorScale] (2)
[modules/hydro.git] / src / HYDRO_tests / test_HYDROData_DTM.cxx
index b3fd50f788cc73bad2d997489398b8938b7ff55e..175b42b8a7fbc6de46515e85eeb0ef2a3b5a90b6 100644 (file)
@@ -553,6 +553,7 @@ void test_HYDROData_DTM::test_presentation()
   HYDROGUI_ShapeBathymetry* aBathPrs = new HYDROGUI_ShapeBathymetry( 0, aContext, DTM );
   aBathPrs->update( true, false );
 
+  bool ColorScaleIsDisp = TestViewer::ColorScaleIsDisplayed();
   TestViewer::showColorScale( true );
   Handle_Aspect_ColorScale aCS = TestViewer::colorScale();
   aCS->SetMin( 0.0 );
@@ -563,6 +564,7 @@ void test_HYDROData_DTM::test_presentation()
   QImage aDTMPrs = draw_DTM( aBathPrs, 0.5, 600, 600 );
   CPPUNIT_ASSERT_IMAGES2( &aDTMPrs, "DTM_1" );
   delete aBathPrs;
+  TestViewer::showColorScale( ColorScaleIsDisp );
 
   aDoc->Close();
 }