Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 3718)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 3719)
@@ -38,4 +38,8 @@
      - replaced MBadPixelsMerge by MParList.AddToList(fBadPixels) until 
        bug in MBadPixelsMerge is resolved (see bugtracker).
+
+   * mcalib/MHCalibrationChargePINDiode.cc
+     - return in Draw() if histogram is empty (otherwise segm. violation 
+       in eventloop
 
 
Index: /trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePINDiode.cc
===================================================================
--- /trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePINDiode.cc	(revision 3718)
+++ /trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePINDiode.cc	(revision 3719)
@@ -368,7 +368,8 @@
   }
 
-  if (!IsEmpty())
-      gPad->SetLogy();
-
+  if (IsEmpty())
+    return;
+
+  gPad->SetLogy();
   gPad->SetTicks();
 
