Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 5427)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 5428)
@@ -21,4 +21,12 @@
                                                  -*-*- END OF LINE -*-*-
 
+ 2004/11/18: Thomas Bretz
+
+   * mjobs/MJPedestal.cc:
+     - fixed a bug in the handling of kUsePed which caused the MTaskEnv
+       to be set incorrectly
+
+
+
  2004/11/18: Markus Gaug
 
@@ -40,4 +48,5 @@
 
 
+
  2004/11/17: Abelardo Moralejo
 
@@ -46,5 +55,6 @@
 
 
- 2004/11/17: Raquel DelosReyes
+
+ 2004/11/17: Raquel de los Reyes
 
    * mhist/MHFindSignificance.cc
@@ -52,4 +62,6 @@
        allowed the option of display the result in a canvas, previously 
        created, or in a new one if it doesn't exit.
+
+
 
  2004/11/16: Markus Gaug
@@ -80,4 +92,5 @@
 
 
+
  2004/11/16: Abelardo Moralejo
 
@@ -97,4 +110,5 @@
 
 
+
  2004/11/16: Markus Gaug
 
@@ -108,4 +122,5 @@
    * mcalib/MCalibrationChargeCalc.cc
      - give the new arguments to MCalibrationQEPix
+
 
 
Index: /trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
===================================================================
--- /trunk/MagicSoft/Mars/mjobs/MJPedestal.cc	(revision 5427)
+++ /trunk/MagicSoft/Mars/mjobs/MJPedestal.cc	(revision 5428)
@@ -710,7 +710,7 @@
 
     case kUsePedRun:
+        taskenv.SetDefault(&pedcalc);
         if (!fExtractor)
             break;
-        taskenv.SetDefault(&pedcalc);
         pedcalc.SetWindowSize((Int_t)TMath::Nint(fExtractor->GetNumHiGainSamples()));
         pedcalc.SetRange(fExtractor->GetHiGainFirst(), fExtractor->GetHiGainLast());
