Index: /trunk/MagicSoft/Mars/mbase/MReadTree.cc
===================================================================
--- /trunk/MagicSoft/Mars/mbase/MReadTree.cc	(revision 658)
+++ /trunk/MagicSoft/Mars/mbase/MReadTree.cc	(revision 659)
@@ -173,10 +173,12 @@
 Bool_t MReadTree::GetEvent() 
 {
-  // Get the Event with the current EventNumber fNumEntry 
-  //
-  fTree->GetEntry(fNumEntry );
-
-  return kTRUE;
-}
+    //
+    // Get the Event with the current EventNumber fNumEntry
+    //
+    fTree->GetEntry(fNumEntry);
+
+    return kTRUE;
+}
+
 Bool_t MReadTree::DecEventNum(UInt_t dec)
 {
Index: /trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.cc
===================================================================
--- /trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.cc	(revision 658)
+++ /trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.cc	(revision 659)
@@ -283,11 +283,8 @@
   //
   
-  Int_t redraw ; 
-
   MRawEvtPixelIter fPixelIter( fEvtData );
-  char wortdummy[100] ; 
 
   //   put the selection of the last event in memory
-  redraw = fPixelList->GetSelected() ; 
+  const Int_t redraw = fPixelList->GetSelected() ;
   
   fPixelList->RemoveEntries(0, fPixelsinList) ; 
@@ -296,8 +293,9 @@
   while ( fPixelIter.Next() )
     {
-      //      cout << fPixelIter.GetPixelId() << endl ; 
-      sprintf( wortdummy, "%d", fPixelIter.GetPixelId() ) ; 
-      
-      fPixelList->AddEntry( wortdummy, fPixelsinList++ ) ; 
+        char wortdummy[100] ;
+        //      cout << fPixelIter.GetPixelId() << endl ;
+        sprintf( wortdummy, "%d", fPixelIter.GetPixelId() ) ;
+
+        fPixelList->AddEntry( wortdummy, fPixelsinList++ ) ;
     }
 
@@ -307,37 +305,29 @@
   // check if the pixel from last event also occurs in this event
 
-  Bool_t neuzeich = kFALSE ;  
   fPixelIter.Reset() ; 
 
   while ( fPixelIter.Next() )
-    {
-      if (fPixelIter.GetPixelId() == redraw ) 
-	neuzeich = kTRUE ; 
-    }
-
-  if ( neuzeich == kTRUE ) 
-    {
-      sprintf(wortdummy, "GRAPH%d", redraw ) ; 
-      
-      fCan->Clear() ; 
-      fCan->cd() ; 
-      
-      fEvtData->Draw(wortdummy) ; 
-      
-      fCan->Modified() ; 
-      fCan->Update() ; 
-      
-      fPixelList->Select(redraw, kTRUE) ; 
-    }
-  else 
-    {
-      fCan->Clear() ; 
-      fCan->cd() ; 
-      fCan->Modified() ; 
-      fCan->Update() ; 
-      
-    }
-  
-  
+  {
+      if (fPixelIter.GetPixelId() != redraw )
+          continue;
+
+      fCan->Clear() ;
+      fCan->cd() ;
+
+      char wortdummy[100] ;
+      sprintf(wortdummy, "GRAPH%d", redraw ) ;
+      fEvtData->Draw(wortdummy) ;
+
+      fCan->Modified() ;
+      fCan->Update() ;
+
+      fPixelList->Select(redraw, kTRUE) ;
+      return;
+  }
+
+  fCan->Clear() ;
+  fCan->cd() ;
+  fCan->Modified() ;
+  fCan->Update() ;
 }
 
@@ -351,7 +341,4 @@
   
   fTxtEvtNr->SetText(wortdummy) ; 
-
-
-
 }
 
@@ -378,7 +365,4 @@
 }  
 
-
-
-  
 Bool_t MGFadcDisp::ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2) 
 {
