Salome HOME
refs #1326: debug of the selection on bathymetry
[modules/hydro.git] / src / HYDRO_tests / TestViewer.cxx
index 34763265665cdaee38bf4541853555016aa561cb..f3c3215206266131e7968b0b3731cfbbc05344cb 100644 (file)
@@ -134,12 +134,14 @@ void TestViewer::show( const Handle(AIS_InteractiveObject)& theObject,
     eraseAll( false );
   }
   
-  context()->Display( theObject, theMode, theSelectionMode );
   if( theSelectionMode > 0 )
   {
     context()->OpenLocalContext();
+    context()->Display( theObject, theMode, theSelectionMode );
     context()->Activate( theObject, theSelectionMode, Standard_True );
   }
+  else
+    context()->Display( theObject, theMode, theSelectionMode );
 
   if( isFitAll )
   {
@@ -422,3 +424,8 @@ bool TestViewer::areScriptsEqual( const QString& theBaseName,
 
   return isEqual;
 }
+
+void TestViewer::setKey( const QString& theKey )
+{
+  myKey = theKey;
+}