]> Creatis software - creaMaracasVisu.git/commitdiff
no message
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Tue, 1 Mar 2011 18:16:21 +0000 (18:16 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Tue, 1 Mar 2011 18:16:21 +0000 (18:16 +0000)
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 ];
                }