Skip to content

Commit

Permalink
fix initialization bug
Browse files Browse the repository at this point in the history
  • Loading branch information
czczc committed Mar 19, 2015
1 parent 38ad7c4 commit 2e7ab1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions viewer/2D/GuiController.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ GuiController::GuiController(const TGWindow *p, int w,int h)
trackStartPointV->SetMarkerColor(kWhite);
trackStartPointV->SetMarkerSize(1.0);

event = 0;
mw = new MainWindow(p, w, h);
vw = mw->fViewWindow;
cw = mw->fControlWindow;
Expand Down Expand Up @@ -577,6 +578,8 @@ void GuiController::MCTrackSelected(int id)

void GuiController::Open(const char* filename)
{
cout << "here" << endl;

if (event) delete event;
event = new MCEvent(filename);
geom = event->geom;
Expand Down
2 changes: 2 additions & 0 deletions viewer/3D/Gui3DController.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ using namespace std;

Gui3DController::Gui3DController()
{
event = 0;
dbPDG = new TDatabasePDG();
mcTrackList = 0;
recoTrackList = 0;

TEveManager::Create();
InitGeometry();
Expand Down

0 comments on commit 2e7ab1e

Please sign in to comment.