Problem with TShape color

From: Alexander Zvyagin (zvyagin@mx.ihep.su)
Date: Mon Feb 16 1998 - 15:12:10 MET


                                           IHEP, Protvino, Russia, 16-FEB-1998

    Dear all!

I have next macro:

{
  gROOT->Reset();
  c1 = new TCanvas("c1","This is canvas c1",500,500);

  new TBRIK("MAIN","This is main frame","void",20,20,20);
  main_node = new TNode("MAINnode","This is main node","MAIN");
  main_node->cd();

  trd1 = new TTRD1("TRD1","TRD1","void",2,1,3,3);
  trd1->SetLineColor(2);
//node = new TNode("NODE2","NODE2","TRD1",-9,-8,-10); // OK. TRD1 is RED
  node = new TNode("NODE2","NODE2", trd1, -9,-8,-10); // ??? TRD1 is BLACK

  c1->cd();
  main_node->cd();
  main_node->Draw();
  c1->Draw();
  c1->Update();
}

The problem is in the color of the shape "TRD1". It is RED if I use one TNode
constructor and BLACK if I use another.

Is it bug?
Alexander Zvyagin.



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:30 MET