Index: trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
===================================================================
--- trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc	(revision 19375)
+++ trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc	(revision 19376)
@@ -416,5 +416,5 @@
             patchesColor[i][j] = color[j];
     }
-    fZeroArray = NULL;
+    //fZeroArray = NULL;
 
     _softwareOrdering = false;
@@ -430,7 +430,8 @@
         delete inputFile;
     }
-    if (fZeroArray != NULL)
-        delete[] fZeroArray;
-}
+    //if (fZeroArray != NULL)
+    //    delete[] fZeroArray;
+}
+/*
 void RawDataViewer::allocateZeroArray()
 {
@@ -440,4 +441,5 @@
     }
 }
+*/
 /************************************************************
  * PAINT GL. main drawing function.
@@ -949,4 +951,5 @@
      emit signalCurrentPixel(pix);
 }
+/*
 void RawDataViewer::computePulsesStatistics()
 {
@@ -1019,4 +1022,5 @@
  //   }
 }
+*/
 /************************************************************
  * UICONNECTOR CONSTRUCTOR
@@ -1113,5 +1117,6 @@
     threeD_Window->setData(GLWindow->eventData.data());
 
-    on_autoScaleColor_clicked();
+    if (autoScaleColor->isChecked())
+        on_autoScaleColor_clicked();
     pixelChanged(GLWindow->selectedPixel);
 
@@ -2042,5 +2047,6 @@
 
     displaySliceValue();
-    on_autoScaleColor_clicked();
+    if (autoScaleColor->isChecked())
+        on_autoScaleColor_clicked();
 }
 
Index: trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.h
===================================================================
--- trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.h	(revision 19375)
+++ trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.h	(revision 19376)
@@ -101,6 +101,6 @@
 
     ///Used to load zero data in case of missing fits columns
-    void allocateZeroArray();
-    char* fZeroArray;
+    //void allocateZeroArray();
+    //char* fZeroArray;
     //bool telling whether the data is natively ordered in software or hardware id
     //used to correctly display monte-carlo data.
@@ -175,8 +175,9 @@
 //    float triggerOffsetMean[1440*1024];
 //    bool calibrationLoaded;
-    bool drawCalibrationLoaded;
+//    bool drawCalibrationLoaded;
 
     QPoint lastPos;
 public:
+    /*
     void computePulsesStatistics();
     double aMeas[1024];
@@ -184,4 +185,5 @@
     double n2mean[1024];
     double vCorr[1024];
+    */
     int64_t VALUES_SPAN;
 
