Index: trunk/MagicSoft/Mars/mhist/MHCamera.cc
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHCamera.cc	(revision 3963)
+++ trunk/MagicSoft/Mars/mhist/MHCamera.cc	(revision 4058)
@@ -100,4 +100,6 @@
     gROOT->GetListOfCleanups()->Add(fNotify);
 
+    TVirtualPad *save = gPad;
+    gPad = 0;
 #if ROOT_VERSION_CODE < ROOT_VERSION(3,01,06)
     SetPalette(1, 0);
@@ -105,4 +107,5 @@
     SetInvDeepBlueSeaPalette();
 #endif
+    gPad = save;
 }
 
@@ -928,4 +931,10 @@
 
 
+// ------------------------------------------------------------------------
+//
+// Changes the palette of the displayed camera histogram.
+//
+// Change to the right pad first - otherwise GetDrawOption() might fail.
+//
 void MHCamera::SetPrettyPalette()
 {
@@ -934,4 +943,10 @@
 }
 
+// ------------------------------------------------------------------------
+//
+// Changes the palette of the displayed camera histogram.
+//
+// Change to the right pad first - otherwise GetDrawOption() might fail.
+//
 void MHCamera::SetDeepBlueSeaPalette()
 {
@@ -940,4 +955,10 @@
 }
 
+// ------------------------------------------------------------------------
+//
+// Changes the palette of the displayed camera histogram.
+//
+// Change to the right pad first - otherwise GetDrawOption() might fail.
+//
 void MHCamera::SetInvDeepBlueSeaPalette()
 {
@@ -946,4 +967,12 @@
 }
 
+// ------------------------------------------------------------------------
+//
+// Paint indices (as text) inside the pixels. Depending of the type-
+// argument we paint:
+//  0: pixel number
+//  1: sector number
+//  2: content
+//
 void MHCamera::PaintIndices(Int_t type)
 {
