Skip to content
Snippets Groups Projects
Commit 1762fe4f authored by Wim Lavrijsen's avatar Wim Lavrijsen
Browse files

Fix http://savannah.cern.ch/bugs/?30217 by adding a dummy Gl_histinit()

in TPyROOTApplication.cxx


git-svn-id: http://root.cern.ch/svn/root/trunk@20269 27541ba8-7e3a-0410-8455-c3a389f83636
parent 00b2d7cf
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include "TSystem.h" #include "TSystem.h"
#include "TBenchmark.h" #include "TBenchmark.h"
#include "TStyle.h" #include "TStyle.h"
#include "Getline.h"
// CINT // CINT
#include "Api.h" #include "Api.h"
...@@ -73,6 +74,9 @@ PyROOT::TPyROOTApplication::TPyROOTApplication( ...@@ -73,6 +74,9 @@ PyROOT::TPyROOTApplication::TPyROOTApplication(
gInterpreter->SaveContext(); gInterpreter->SaveContext();
gInterpreter->SaveGlobalsContext(); gInterpreter->SaveGlobalsContext();
// prevent crashes on accessing histor
Gl_histinit( (char*)"-" );
// prevent ROOT from exiting python // prevent ROOT from exiting python
SetReturnFromRun( kTRUE ); SetReturnFromRun( kTRUE );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment