Alexander Zvyagin wrote: > > 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. Thanks to report this problem with this TNode constructor. One line was unfortunately commented in this function. I have fixed the problem in my version. Rene Brun
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:30 MET