Index: trunk/MagicSoft/Mars/mgeom/MGeomCam.cc
===================================================================
--- trunk/MagicSoft/Mars/mgeom/MGeomCam.cc	(revision 1698)
+++ trunk/MagicSoft/Mars/mgeom/MGeomCam.cc	(revision 1715)
@@ -117,5 +117,5 @@
 Float_t MGeomCam::GetPixRatio(Int_t i) const
 {
-    return (*this)[0].GetA()/(*this)[i].GetA();
+    return i<fNumPixels ? (*this)[0].GetA()/(*this)[i].GetA() : 0;
 }
 
