[root] / trunk / hist / hist / src / TMultiGraph.cxx Repository:
ViewVC logotype

Diff of /trunk/hist/hist/src/TMultiGraph.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 40956, Tue Sep 20 15:50:44 2011 UTC revision 41541, Mon Oct 24 13:31:15 2011 UTC
# Line 945  Line 945 
945  void TMultiGraph::Paint(Option_t *option)  void TMultiGraph::Paint(Option_t *option)
946  {  {
947     // paint all the graphs of this multigraph     // paint all the graphs of this multigraph
948       const TPickerStackGuard pushGuard(this);
949    
950     if (!fGraphs) return;     if (!fGraphs) return;
951     if (fGraphs->GetSize() == 0) return;     if (fGraphs->GetSize() == 0) return;
# Line 1091  Line 1092 
1092        TObject *obj = 0;        TObject *obj = 0;
1093    
1094        while (lnk) {        while (lnk) {
1095    
1096           obj = lnk->GetObject();           obj = lnk->GetObject();
1097           if (strlen(lnk->GetOption())) obj->Paint(lnk->GetOption());  
1098           else                          obj->Paint(chopt);           gPad->PushSelectableObject(obj);
1099    
1100             if (!gPad->PadInHighlightMode() || (gPad->PadInHighlightMode() && obj == gPad->GetSelected())) {
1101                if (strlen(lnk->GetOption()))
1102                   obj->Paint(lnk->GetOption());
1103                else
1104                   obj->Paint(chopt);
1105             }
1106    
1107           lnk = (TObjOptLink*)lnk->Next();           lnk = (TObjOptLink*)lnk->Next();
1108        }        }
1109    
1110        gfit = (TGraph*)obj; // pick one TGraph in the list to paint the fit parameters.        gfit = (TGraph*)obj; // pick one TGraph in the list to paint the fit parameters.
1111     }     }
1112    

Legend:
Removed from v.40956  
changed lines
  Added in v.41541

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9