Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 8479)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 8480)
@@ -70,7 +70,10 @@
      - removed the bad pixel levels for first and last bins
 
-   * msignal/MExtractTimeAndChargeSpline.[h,cc]:
+   * msignal/MExtractTimeAndChargeSpline.[h,cc], 
+     mextralgo/MExtralgoSpline.cc:
      - changed to allow setup of the extraction type and the 
        relative or absolute height for arrival
+     - if the height is set < 0 and extraction type is set to
+       relative integral the maximum is used instead of the leading edge.
      - accordingly increased version number by one
 
Index: /trunk/MagicSoft/Mars/mextralgo/MExtralgoSpline.cc
===================================================================
--- /trunk/MagicSoft/Mars/mextralgo/MExtralgoSpline.cc	(revision 8479)
+++ /trunk/MagicSoft/Mars/mextralgo/MExtralgoSpline.cc	(revision 8480)
@@ -411,4 +411,14 @@
     }
 
+    fSignal    = CalcIntegral(maxpos);
+    fSignalDev = 0;  // means: is valid
+
+    if (fExtractionType==kIntegralRel && fHeightTm<0)
+    {
+        fTime = maxpos;
+        fTimeDev = 0;
+        return;
+    }
+
     const Float_t h = fExtractionType==kIntegralAbs ? fHeightTm : fHeight*fHeightTm;
 
@@ -422,6 +432,4 @@
         fWidthDev = 0;
     }
-    fSignal    = CalcIntegral(maxpos);
-    fSignalDev = 0;  // means: is valid
 
     //
