From 8f77e6777350c9fa8f2db3d856eca535be3fcfec Mon Sep 17 00:00:00 2001 From: Olivier Couet <Olivier.Couet@cern.ch> Date: Thu, 19 Nov 2009 08:45:34 +0000 Subject: [PATCH] - A "static" was missing (problem seen when the macro was executed several times). root [0] .L multipalette.C root [1] multipalette() root [2] multipalette() git-svn-id: http://root.cern.ch/svn/root/trunk@31305 27541ba8-7e3a-0410-8455-c3a389f83636 --- tutorials/graphs/multipalette.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/graphs/multipalette.C b/tutorials/graphs/multipalette.C index ffdaab3e7ab..9db61ab2f9c 100644 --- a/tutorials/graphs/multipalette.C +++ b/tutorials/graphs/multipalette.C @@ -10,7 +10,7 @@ void Pal1() { - Int_t colors[50]; + static Int_t colors[50]; static Bool_t initialized = kFALSE; Double_t Red[3] = { 1.00, 0.00, 0.00}; @@ -29,7 +29,7 @@ void Pal1() void Pal2() { - Int_t colors[50]; + static Int_t colors[50]; static Bool_t initialized = kFALSE; Double_t Red[3] = { 1.00, 0.50, 0.00}; -- GitLab