Ignore:
Timestamp:
Aug 28, 2008, 4:17:35 PM (17 years ago)
Author:
garnier
Message:

maj de CVS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/management/src/G4VisCommands.cc

    r772 r849  
    2525//
    2626//
    27 // $Id: G4VisCommands.cc,v 1.22 2007/03/27 15:47:32 allison Exp $
     27// $Id: G4VisCommands.cc,v 1.23 2008/07/27 10:46:23 allison Exp $
    2828// GEANT4 tag $Name:  $
    2929
     
    179179void G4VisCommandReviewKeptEvents::SetNewValue (G4UIcommand*, G4String newValue)
    180180{
     181  static bool reviewing = false;
     182  if (reviewing) {
     183    G4cout <<
     184      "\"/vis/reviewKeptEvents\" not allowed within an already started review."
     185      "\n  No action taken."
     186           << G4endl;
     187    return;
     188  }
     189
    181190  G4String& macroFileName = newValue;
    182191  G4VisManager::Verbosity verbosity = fpVisManager->GetVerbosity();
     
    223232
    224233  // Event by event refreshing...
     234  reviewing  = true;
    225235  G4bool currentRefreshAtEndOfEvent = pScene->GetRefreshAtEndOfEvent();
    226236  pScene->SetRefreshAtEndOfEvent(true);
     
    286296  }
    287297  pScene->SetRefreshAtEndOfEvent(currentRefreshAtEndOfEvent);
     298  reviewing  = false;
    288299
    289300  UImanager->SetVerboseLevel(keepVerbose);
Note: See TracChangeset for help on using the changeset viewer.