From 4198e9bf5e8bab867a81483bcf0e2608cb85d53d Mon Sep 17 00:00:00 2001
From: Rene Brun <Rene.Brun@cern.ch>
Date: Fri, 18 Aug 2000 14:46:31 +0000
Subject: [PATCH] Add possibility to create a user graphical cut with his own
 class. This uses the information specified in TROOT::SetCutClassName

git-svn-id: http://root.cern.ch/svn/root/trunk@501 27541ba8-7e3a-0410-8455-c3a389f83636
---
 gpad/src/TPad.cxx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gpad/src/TPad.cxx b/gpad/src/TPad.cxx
index 2311a753789..dac4def750f 100644
--- a/gpad/src/TPad.cxx
+++ b/gpad/src/TPad.cxx
@@ -1,4 +1,4 @@
-// @(#)root/gpad:$Name:  $:$Id: TPad.cxx,v 1.9 2000/07/13 09:04:37 brun Exp $
+// @(#)root/gpad:$Name:  $:$Id: TPad.cxx,v 1.10 2000/08/15 07:37:37 brun Exp $
 // Author: Rene Brun   12/12/94
 
 /*************************************************************************
@@ -977,8 +977,8 @@ void TPad::CreateNewPolyLine(Int_t event, Int_t px, Int_t py, Int_t mode)
             yline[npoints] = yline[0];
             npoints++;
             gr = (TGraph*)gROOT->ProcessLineFast(
-                 Form("new TCutG(\"CUTG\",%d,(Double_t*)0x%lx,(Double_t*)0x%lx)",
-                      npoints,(Long_t)xline,(Long_t)yline));
+                 Form("new %s(\"CUTG\",%d,(Double_t*)0x%lx,(Double_t*)0x%lx)",
+                      gROOT->GetCutClassName(),npoints,(Long_t)xline,(Long_t)yline));
             if (gr) gr->Draw("L");
          }
          npoints = 0;
-- 
GitLab