Ignore:
Timestamp:
Oct 2, 2008, 10:29:48 AM (16 years ago)
Author:
garnier
Message:

protection against no scene + Qapp could be now get on external app

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenGL/src/G4OpenGLStoredQtViewer.cc

    r850 r858  
    5858  nbPaint =0;
    5959  hasToRepaint =false;
     60
     61  // if no scene...
     62  if (fSceneHandler.GetScene() == 0) {
     63    G4cerr << "G4OpenGLStoredQtViewer: Creating a Viewer without a scene is not allowed. \nPlease use /vis/scene/create before /vis/open/.... "
     64           << G4endl;
     65    return;
     66  }
    6067  if (fViewId < 0) return;  // In case error in base class instantiation.
    6168}
     
    7683void G4OpenGLStoredQtViewer::Initialise() {
    7784#ifdef GEANT4_QT_DEBUG
    78   printf("GLWidget::Initialise \n");
     85  printf("G4OpenGLStoredQtViewer::Initialise 1\n");
    7986#endif
    8087  readyToPaint = false;
Note: See TracChangeset for help on using the changeset viewer.