Text color in TLegend

Hi,

I try to change the color of the text in a TLegend object but whatever color I chose the text remains black. Here is what I do:

{
  TLegend* legend = new TLegend(0.75,0.7,0.98,0.95,"","NDC");
  legend->SetTextColor(2);

  TMarker* marker = new TMarker(0.5,0.5,20);

  TCanvas* cSkyMap = new TCanvas("cTest","test",600,400);
  legend->AddEntry(marker,"test","p");

  legend->Draw();
}

I couldn’t find any other method for TLegend that sounds like it would change the color. I’m using root-v5.10.00.

Regards, Alexander

With ROOT version 5.17/07 your macro produces a red text.