]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuAxeVolume.cxx
no message
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuAxeVolume.cxx
index bee0a9a0792a6244fffe56ff7872b4ba8a713f37..db203c70a8771137b1e8267a18f7fec9446c1eac 100644 (file)
@@ -48,7 +48,12 @@ void AxeVolume::Process()
         {
                if (sizeLstPointR<iAxe)
                {
-                       r = bbGetInputlstPointR()[ bbGetInputlstPointR().size()-1 ];
+                       if (bbGetInputlstPointR().size()>=1)
+                       {
+                               r = bbGetInputlstPointR()[ bbGetInputlstPointR().size()-1 ];
+                       } else {
+                               r = 1;
+                       }
                } else {
                        r = bbGetInputlstPointR()[ iAxe ];
                }