From 0b3c2b581d7ae37c58934e1d76ab9157a7090a9e Mon Sep 17 00:00:00 2001
From: Rene Brun <Rene.Brun@cern.ch>
Date: Fri, 2 Dec 2005 17:43:04 +0000
Subject: [PATCH] TTree::BranchRef is only called when split >=2 Need to
 investigate why Event complains in case of split < 2

git-svn-id: http://root.cern.ch/svn/root/trunk@13459 27541ba8-7e3a-0410-8455-c3a389f83636
---
 test/MainEvent.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/MainEvent.cxx b/test/MainEvent.cxx
index c5916453f3f..9315a50879c 100644
--- a/test/MainEvent.cxx
+++ b/test/MainEvent.cxx
@@ -1,4 +1,4 @@
-// @(#)root/test:$Name:  $:$Id: MainEvent.cxx,v 1.28 2005/01/12 07:50:02 brun Exp $
+// @(#)root/test:$Name:  $:$Id: MainEvent.cxx,v 1.29 2005/12/02 11:15:44 brun Exp $
 // Author: Rene Brun   19/01/97
 
 ////////////////////////////////////////////////////////////////////////
@@ -209,7 +209,7 @@ int main(int argc, char **argv)
       TTree::SetBranchStyle(branchStyle);
       TBranch *branch = tree->Branch("event", &event, bufsize,split);
       branch->SetAutoDelete(kFALSE);
-      tree->BranchRef();
+      if(split > 1) tree->BranchRef();
       Float_t ptmin = 1;
 
       for (ev = 0; ev < nevent; ev++) {
-- 
GitLab