Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 2200)
+++ trunk/MagicSoft/Mars/Changelog	(revision 2204)
@@ -1,3 +1,10 @@
                                                  -*-*- END OF LINE -*-*-
+
+ 2003/06/19: Thomas Bretz
+ 
+   * mgui/MCamDisplay.[h,cc]:
+     - fixed color palette when loading MCamDisplay
+
+
 
  2003/06/18: Thomas Bretz
Index: trunk/MagicSoft/Mars/mgui/MCamDisplay.cc
===================================================================
--- trunk/MagicSoft/Mars/mgui/MCamDisplay.cc	(revision 2200)
+++ trunk/MagicSoft/Mars/mgui/MCamDisplay.cc	(revision 2204)
@@ -78,5 +78,5 @@
 //  Default Constructor. To be used by the root system ONLY.
 //
-MCamDisplay::MCamDisplay() : fGeomCam(NULL), fAutoScale(kTRUE)
+MCamDisplay::MCamDisplay() : fGeomCam(NULL), fAutoScale(kTRUE), fColors(kItemsLegend)
 {
     fNumPixels = 0;
@@ -96,4 +96,10 @@
 
     fNotify  = NULL;
+
+#if ROOT_VERSION_CODE < ROOT_VERSION(3,01,06)
+    SetPalette(1, 0);
+#else
+    SetPalette(51, 0);
+#endif
 }
 
@@ -409,4 +415,11 @@
         gStyle->SetPalette(ncolors, colors);
 
+    if (!fPixels)
+    {
+        for (int i=0; i<kItemsLegend; i++)
+            fColors[i] = gStyle->GetColorPalette(i);
+        return;
+    }
+
     //
     // Change the colors of the pixels
@@ -446,5 +459,5 @@
 
     //
-    // Store the color palette used for a leter reverse lookup
+    // Store the color palette used for a later reverse lookup
     //
     for (int i=0; i<kItemsLegend; i++)
@@ -454,4 +467,5 @@
     }
 }
+
 
 void MCamDisplay::SetPrettyPalette()
Index: trunk/MagicSoft/Mars/mgui/MCamDisplay.h
===================================================================
--- trunk/MagicSoft/Mars/mgui/MCamDisplay.h	(revision 2200)
+++ trunk/MagicSoft/Mars/mgui/MCamDisplay.h	(revision 2204)
@@ -45,5 +45,5 @@
     Float_t        fRange;       // the range in millimeters of the present geometry
 
-    TArrayI        fColors;      // Color conversion table
+    TArrayI        fColors;      //! Color conversion table
 
     TArrow        *fArrowX;      // Coordinate System
