[ROOT] for + if + gPad problem?

From: Chris Crawford (chris2@lns.mit.edu)
Date: Wed Sep 22 2004 - 22:18:02 MEST

  Could anyone please tell me what is wrong with the following little 
piece of code?  I am using v4.00/08, linux redhat 8.0.  I'm not sure it 
really has to do with gPad, that's just what I ran across.
Chris Crawford

  new TCanvas("cv1","cv1");
  for (int x=0;x<2;x++) { //x=1;x<2;x++
    if (!x) cout<<"gPad2="<<gPad<<endl;
    if (x)  cout<<"gPad3="<<gPad<<endl;

This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET