Index: /trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
===================================================================
--- /trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc	(revision 11722)
+++ /trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc	(revision 11723)
@@ -1515,6 +1515,5 @@
         }
     }
-    it--;
-    xval[nsamples] = it->first+1;
+    xval[nsamples] = it==boardsHistoMap.begin() ? 0 : (--it)->first+1;
     yval[nsamples] = 0;
     nsamples++;
@@ -1554,6 +1553,5 @@
         }
    }
-    it--;
-    xval[nsamples] = it->first+1;
+    xval[nsamples] = it==pixelHistoMap.begin() ? 0 : (--it)->first+1;
     yval[nsamples] = 0;
     nsamples++;
@@ -1593,6 +1591,5 @@
         }
     }
-    it--;
-    xval[nsamples] = it->first+1;
+    xval[nsamples] = it==timeMarksMap.begin() ? 0 : (--it)->first+1;
     yval[nsamples] = 0;
     nsamples++;
@@ -1631,7 +1628,6 @@
             break;
         }
-   }
-    it--;
-    xval[nsamples] = it->first+1;
+    }
+    xval[nsamples] = it==delayMap.begin() ? 0 : (--it)->first+1;
     yval[nsamples] = 0;
     nsamples++;
@@ -1642,5 +1638,4 @@
        triggerDelayHistoItem.setSamples(xval, yval, nsamples);
 #endif
-
 
 //    startCellHistoZoom->setZoomBase(startCellHistoItem.boundingRect());
