Index: trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.cc
===================================================================
--- trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.cc	(revision 7533)
+++ trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.cc	(revision 7534)
@@ -759,13 +759,18 @@
 //  Paint the integral and the error on top of the histogram
 //
-void MHEffectiveOnTime::PaintText(Double_t val, Double_t error, Double_range) const
+void MHEffectiveOnTime::PaintText(Double_t val, Double_t error, Double_t range) const
 {
     TLatex text;
     text.SetBit(TLatex::kTextNDC);
     text.SetTextSize(0.04);
-    text.PaintLatex(0.45, 0.94, Form("T_{eff} = %.1fs \\pm %.1fs", val, error));
-
-    if (range>=0)
-        text.PaintLatex(0.66, 0.94, Form("T_{axe} = %.1fs", range));
+
+    text.SetText(0.45, 0.94, Form("T_{eff} = %.1fs \\pm %.1fs", val, error));
+    text.Paint();
+
+    if (range<0)
+        return;
+
+    text.SetText(0.66, 0.94, Form("T_{axe} = %.1fs", range));
+    text.Paint();
 }
 
@@ -905,5 +910,5 @@
         h = &fHTimeEffOn;
         UpdateRightAxis(fHTimeLambda);
-        range = h->GetXaxis()->GetXmax()->h->GetXaxis()->GetXmin();
+        range = h->GetXaxis()->GetXmax() - h->GetXaxis()->GetXmin();
     }
 
