gROOT->GetListOfColors()

Hi,

In my rootlogon script I used to define a color via
TColor mycolor=(TColor)gROOT->GetListOfColors()->At(0); (and then modify it later on).

In Root 5.14/00g everything works fine, but in Root 5.18/00a not anymore because gROOT->GetListOfColors()->At(0) returns an empty pointer. What has changed and how do I access an element of the list of colors in this Root version?

Thanks,
Jochen

In the recent versions colors are not initialized anymore if they are not needed.
The colors are automatically created when creating a canvas or other high level graphics objects. In your case simply call

TColor::InitializeColors();
Rene