new TColor in rootlogon.C

From: <roottalk_at_krampy.de>
Date: Tue, 23 Sep 2008 23:41:41 +0200


Hi,

I am trying to define some colors for later use in my rootlogon.C:

new TColor(1009, 0.986885,0.983607,0.991803, "");
new TColor(1010, 0.973770,0.967213,0.983607, "");
new TColor(1011, 0.960656,0.950820,0.975410, "");
and many more.....

Problem is: for each color I get a warning:

Warning in <TColor::TColor>: color 1009 already defined
Warning in <TColor::TColor>: color 1010 already defined
Warning in <TColor::TColor>: color 1011 already defined
and so on.

If I remove these lines from my rootlogon.C and just type them in right after starting root I don't get any of these warnings. I also have tried using other numbers for the colors, it does not help.

I did not notice any problem yet, everything seems to work fine even with those warnings, but it is kind of annoying to get more than 200 lines of warnings every time I start root. What am I doing wrong?

Cheers,
Jan Hartmann Received on Tue Sep 23 2008 - 23:42:02 CEST

This archive was generated by hypermail 2.2.0 : Wed Sep 24 2008 - 11:50:03 CEST